|
|
#1 |
|
Junior Member
|
parsing xml
I need to parse the contents of an xml file at runtime. Actually, I just need to parse the contents of a single line. The tag only exists once in the file, so I don't need to work down through nested nodes, just need to find the text in the file, preferably ignoring whitespace and newlines, as I can't be sure whether the newlines are form-feed only (as per xml spec) or windows' form-feed\newline combo and I don't know if there how many spaces, etc there are between things.
The line looks like this: <AppStart workingdir="param1" cmd="param2">param3</AppStart> or it might not have workingdir specified, so it might be: <AppStart cmd="param1">param2</AppStart> So I just need to get the parameters out of that line, regardless of where it is in the file. Any help? |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|