Reading XML files with 4NT
Hello,
I have a little problem when trying to read an XML file with @READ or
@LINE commands.
It seems that the
"<" in front of each XML tag is understood as a pipe command, so the READ or LINE command crashes.
For example, here is what I wrote :
DO i=0 TO %@LINES[5XHMA.xml"]
SET ligne=%@LINE[5XHMA,%i]
IFF NOT %ligne=**EOF** THEN
SET deb = %@INDEX[%ligne,<NBLIGNES>]
SET fin = %@INDEX[%ligne,</NBLIGNES>]
ENDIFF
ENDDO
I'm using 4NT 3.01A under Windows 2000.
Do you have an idea to help me ?
Thank you !
Renaud
Renaud MAURE
Friday, July 9, 2004
What is 4NT and who dose he work for?
.
Friday, July 9, 2004
did you try to convert the line to a string first before parsing it? Something is wrong if a language is interpreting/running lines in a text file as commands.
sir_flexalot
Friday, July 9, 2004
Try a newer version of 4NT? Yours is very old.
You Don't Want to Know
Friday, July 9, 2004
Also, you probably have to enclose all the brackets using the single reverse quote thingy:
`<`/NBLIGNES`>`
You Don't Want to Know
Friday, July 9, 2004
Look up the escape character in the docs.
Tom
Friday, July 9, 2004
Recent Topics
Fog Creek Home
|