Re: XMLTOCURSOR
- From: "Nikki" <castelo@xxxxxx>
- Date: Thu, 20 Apr 2006 11:41:40 +1000
Try this,
Format the xml to remove the <ReportMessage> tag and its contents.
(use the XML DOM object)
<?xml version="1.0" encoding="UTF-8"?>
<Report>
<Summary Process="3" Success="3" Reject="0">
</Summary>
</Report>
XMLTOCURSOR( "MyXml.XML", "fXmlFile", 512 + 4)
Even the below will now work:
<?xml version="1.0" encoding="UTF-8"?>
<Report>
<Summary Process="3" Success="3" Reject="0">
</Summary>
<Summary Process="13" Success="6" Reject="2">
</Summary>
<Summary Process="24" Success="8" Reject="9">
</Summary>
</Report>
Or you could try to use XSLT to transform the XML file to a format easily
recognized by XMLTOCURSOR.
"Scott" <Scott@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C71D6926-170B-404E-A45D-AE525A6D9474@xxxxxxxxxxxxxxxx
We recieve files offsite. Here is one such file:
<?xml version="1.0" encoding="UTF-8"?>
<Report>
<ReportMessage>Successful without rejections - Succès sans
rejets</ReportMessage>
<Summary Process="3" Success="3" Reject="0">
</Summary>
</Report>
To the average joe, is can be confusing so, of course, I want to pull it
into a cursor so I can present it better.
When I use XMLTOCURSOR on this, I get "unable to infer xml schema". I
can't
seem to find the problem. Help?
.
- Prev by Date: RE: CREATEOBJECT with form and VFP9
- Next by Date: RE: AppendChunk
- Previous by thread: Re: XMLTOCURSOR
- Next by thread: View Design problem
- Index(es):
Relevant Pages
|