>Hello Everybody !
>I have to read xml files from our customer into a foxpro cursor!
>The first line looks like this:
>?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?
>When i do:
>XMLTOCURSOR("2003667011.xml","mycursor")
>
>I get the following error:
>XML-parsererror: Invalid at the top level of the document
>line 1, position 1. 2003667011.xml
>
>I tried to copy the content of the file(only 20 lines) into this message, but got an explorer error:
>You cannot include a style attribute inside a tag ???
>Therefore i take out the leading < and closing > from the first line
>
>What do i miss
>Any help welcomed
>
>best regards
>Albert
Albert,
XMLTOCURSOR("2003667011.xml","mycursor",512)
Otherwise you're saying first parameter is an expression or a memory variable holding xml content. ie:
XMLTOCURSOR(;
'<myData>'+;
' <myRow firstName="Albert" lastName="Beermann"/>'+;
' <myRow firstName="Cetin" lastName="Basoz"/>'+;
'</myData>',"mycursor")
or:
cMyXML = FileToStr("2003667011.xml")
XMLTOCURSOR(m.cMyXML,"mycursor")
Cetin