XML reading

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

XML reading

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

by clarkm >> Fri, 19 Apr 2002 14:37:45 GMT

G'Day
Does anyone have any code for reading XML files and either creating objects from them, or dealing with them in Jade in some way? We're about to embark on the journey of being able to import xml formated data into our system, but I'm finding the MS XML stuff, and other Java and C++ oriented infomation hard to process.

Can anyone help?
Thanks

Hayden McInnes
Synergist Limited - Home of FileVisionT
http://www.filevision.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: XML reading

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

by wxv >> Sun, 21 Apr 2002 23:51:25 GMT

Depends on the complexity of the XML I guess. Building a simple XML parser in jade for a limited subset of XML would not be hard. Ive done it once (supported simple elements only), and probably so have many others.

The problem is that as soon as your limited parser has to parse documents created by other organizations which contain features that it cant handle, your in trouble. XML is supposed to be an open, inter-operable standard, so for reading in XML documents, you really should have a fully-compliant parser.

Because its difficult to use the MS XML api from Jade, your probably much better off building a helper COM object or DLL library. Ive seen utilities that will generate a data structure wrapper in VB that encaptulates the specific XML structure you need and that can expose it as a COM object for use by an external app (ie a web page, or Jade), or do this monkey-coding yourself.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: XML reading

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

by clarkm >> Wed, 24 Apr 2002 9:50:30 GMT

Thanks Wilfred.
That helps out a lot, and I think my head is starting to get around this whole issue.

Can you remember off-hand some names of those utilities? I'll search around for something like that also.

And if anyone else has experience - I know that XML Adaptor was written in Jade for Fletcher Wood Panels - did anyone reading this work on that?
Any hints or pointers that you can pass on?

Thanks heaps
Hayden.
Synergist Limited - Home of FileVision
http://www.filevision.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: XML reading

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:07 pm

by wxv >> Sat, 27 Apr 2002 3:13:39 GMT

There is a simple template based one at http://msdn.microsoft.com/msdnmag/issue ... MLWrap.asp. There are probably others.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 31 guests