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.
|