Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrXML
Parsing problem (EXN_TEXT)

User
Guest
Quote
2012-12-10 18:36:03

I'm having trouble parsing a simple xml file:

<root>
<SETPOINT>
<NAME>ACP_BDC_EMP1</NAME>
<VALUE>3786</VALUE>
</SETPOINT>
</root>


When the parser gets to the name element, it correctly parses the name element, then it recognizes the text and gives me the text ACP_BDC_EMP1. The next read after the text, the parser will give me another EXN_TEXT node type, but with an empty string attached. Does it have a problem with underscores being in the text? I can't find any other reason for the problem.

Also, I'm trying to set up my code to detect EXN_ELEMENT_END nodes, but it won't detect them. Anyone have any sample code on how to get this to work?


User
Guest
Quote
2012-12-10 19:59:31

I found out its a whitespace problem... its finding the whitespace in between elements. I'm not sure why, but it is. So its returning newline characters from the xml file.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact