Click here to Skip to main content
15,889,281 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: Automation and eVC++ 4.2 Pin
perlmunger22-Feb-07 5:14
perlmunger22-Feb-07 5:14 
QuestionPairing between PDA and bluetooth device Pin
spit_spit_spit_spit20-Feb-07 23:04
spit_spit_spit_spit20-Feb-07 23:04 
Questionebook refrecence Pin
B.A20-Feb-07 2:37
B.A20-Feb-07 2:37 
AnswerRe: ebook refrecence Pin
Orcrist26-Feb-07 11:35
Orcrist26-Feb-07 11:35 
Questionserver certificate authentification Pin
lmr2219-Feb-07 23:45
lmr2219-Feb-07 23:45 
QuestionHow to start new process (specifically IE) using a button? Pin
Bosch_cco16-Feb-07 0:31
Bosch_cco16-Feb-07 0:31 
AnswerRe: How to start new process (specifically IE) using a button? Pin
Mike Dimmick19-Feb-07 6:19
Mike Dimmick19-Feb-07 6:19 
QuestionCannot parse XML under Windows Mobile 5.0 Pin
Antony Lee14-Feb-07 17:43
Antony Lee14-Feb-07 17:43 
Would anybody advise on the following code why it did run correctly in Windows XP but did not run correctly in Windows Mobile ?

I am writing a C# program on Window Mobile 5.0 device to parse the content of a XML file but exception raised when the program started.

The content of the XML file is:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE MessageCenter [
  <!ENTITY message-center-connection SYSTEM 
"MessageCenterConnection.xml"?>
]?>

<MessageCenter>
    &message-center-connection;

   <other-settings>
       .........
   </other-settings>
</MessageCenter>


The contain of the MessageCenterConnection.xml is
<connection>
  <host>localhost</host>
  <port>3550</port>
</connection>

The C# code used to parse the XML is:
protected XmlDocument xmlDoc = null;

xmlDoc = new XmlDocument();
try
{
   XmlTextReader xmlTextReader = new XmlTextReader(xmlConfig);
   xmlTextReader.EntityHandling = EntityHandling.ExpandEntities;
   xmlDoc.Load(xmlTextReader);
}
catch (Exception ex)
{
   Console.WriteLine(ex.ToString());
}


when the program was run under Windows Mobile, the following message was
displayed:
System.NotSupportedException: NotSupportedException
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode()
at System.Xml.XmlLoader.LoadDocSequence()
at System.Xml.XmlLoader.Load()
at System.Xml.XmlDocument.Load()
at Symbol.Application.Framework.Configuration.ConfigTemplate.LoadConfigSettings()
at Symbol.MessageCenter.ConfigMessageCenter.ReadConfigFromXML()
at Symbol.MessageCenter.ConfigMessageCenter..ctor()
at Symbol.MessageCenter.Configuration..ctor()
at Symbol.MessageCenter.MessageCenter..ctor()
at Symbol.MessageCenter.Program.Main()


If I removed the
<!DOCTYPE MessageCenter [
  <!ENTITY message-center-connection SYSTEM 
"MessageCenterConnection.xml"?>
]?>
and
&message-center-connection;

from the XML, the program run normally also in WM5.0.

I placed the program file and the XML in the following folder structure:
|--Application
   |--Configuration
      |--MessageCenter.xml
      |--MessageCenterConnection.xml
   |--MessageCenter.exe    

AnswerRe: Cannot parse XML under Windows Mobile 5.0 Pin
Mike Dimmick15-Feb-07 0:12
Mike Dimmick15-Feb-07 0:12 
GeneralRe: Cannot parse XML under Windows Mobile 5.0 Pin
Antony Lee15-Feb-07 4:27
Antony Lee15-Feb-07 4:27 
QuestionPocket PC Keyboard Pin
MinarikM14-Feb-07 3:15
MinarikM14-Feb-07 3:15 
AnswerRe: Pocket PC Keyboard Pin
Mike Dimmick15-Feb-07 0:15
Mike Dimmick15-Feb-07 0:15 
GeneralRe: Pocket PC Keyboard Pin
MinarikM15-Feb-07 2:33
MinarikM15-Feb-07 2:33 
QuestionHow to create a ticker on Pocket PC Pin
snprani13-Feb-07 23:48
snprani13-Feb-07 23:48 
AnswerRe: How to create a ticker on Pocket PC Pin
perlmunger21-Feb-07 5:23
perlmunger21-Feb-07 5:23 
QuestionDownloading a picture from a Servlet [modified] Pin
Vichitram12-Feb-07 20:10
Vichitram12-Feb-07 20:10 
QuestionAbout tiny kernel template? Pin
Syouki_kou12-Feb-07 17:56
Syouki_kou12-Feb-07 17:56 
AnswerRe: About tiny kernel template? Pin
Mike Dimmick15-Feb-07 0:19
Mike Dimmick15-Feb-07 0:19 
Questionperformance profiling tool for Windows Mobile? Pin
George_George12-Feb-07 4:34
George_George12-Feb-07 4:34 
QuestionWSE3 and VS2005 compact framework Pin
AndyBrew7012-Feb-07 2:12
AndyBrew7012-Feb-07 2:12 
QuestionOpenNetCf version Pin
ArchaBhandare11-Feb-07 22:13
ArchaBhandare11-Feb-07 22:13 
Questionexception encountered Pin
ArchaBhandare11-Feb-07 20:06
ArchaBhandare11-Feb-07 20:06 
AnswerRe: exception encountered Pin
perlmunger21-Feb-07 5:39
perlmunger21-Feb-07 5:39 
QuestionSMS Protocol...? Pin
PavanPareta11-Feb-07 19:24
PavanPareta11-Feb-07 19:24 
AnswerRe: SMS Protocol...? Pin
perlmunger21-Feb-07 5:48
perlmunger21-Feb-07 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.