Re: XML for VMS



In article <nv4ji.46155$aS5.1875@xxxxxxxxxxxxxxxxxxxxxxxxx>,
Chris Sharman <chris.sharman@xxxxxxxxxxxx> wrote:

I've got an old application which accepts orders via tagged text input
files.
Something like:

_order_1001
_product_ab10
_quantity_30
_ink_Black
_name_Mr Jones
etc...

I've looked at updating it to handle xml a number of times, but I've
looked at the available parsers in the past (expat etc), and got
nowhere.

As I recall, I couldn't get expat to compile - did it require gcc rather
than decc? Interesting that Bob recommends the hp offering, but Hoff
couldn't get it to work.

I grabbed the latest version of expat from

http://sourceforge.net/projects/expat/

and it compiled fine on VMS 8.3 (up to date with ECOs). See the file
[.vms]README.vms in the distribution for compilation instructions.

Documentation can be found in [.doc]reference.html

FWIW, the downloadable file came as expat-2.0.1.tar.gz - To save mucking
around on the VMS side, I unpacked it on my Mac and built a zip file
there; then used unzip on on that on VMS.

From my reading of the website, the hp offering only supports Java and
C++; Unfortunate if you don't have a C++ compiler and don't want to go
the Java route.

Suggests that I'm not the only one struggling.
There seem to be a lot of different ways to achieve the same thing with
xml (xslt, sax, dom, ...) and pretty thin documentation on all of them.

And all the examples I have found are in C, not 100% helpful for those
wishing to use another language.

Sounds like my best bet might be libxslt, preprocessing the xml into my
'legacy' format, then feeding into the original program.

Any reason why libxslt in particular?

Possibly a DTD to specify the new format to business partners.


--
Paul Sture
.



Relevant Pages

  • Re: Callable XML Parser for OpenVMS?
    ... >I know of two libraries that can be used on VMS to read XML. ... >Another that works is the 'expat' parser for C. ... I second the recommendation of Expat. ... JDOM is a Java package which creates and parses XML, ...
    (comp.os.vms)
  • Re: Nervous Nuby Starting Out!
    ... i use because my boyfriend pointed out that XML works well as a Better ... try to compile and install Gems so I can have a go at using the ... at Ruby In The First Place is to take a step back and learn from the ... future if I keep learning Applescript as self-taught with nobody to talk to. ...
    (comp.lang.ruby)
  • Re: XML-based object orientated pre-Assembler
    ... > I have been promising an object orientated ASM IDE for a while now. ... > that will parse XML code and output ASM files. ... > compile and viola, the code is ported. ... "Why would someone use this product over other assemblers?" ...
    (alt.lang.asm)
  • Re: XMLReader skip current element
    ... You should try Eclipse some time - it will compile (in some cases, ... Likewise, just how handy would it be to just skip over an invalid section of XML, when you have no idea what the overall effect of doing so would be? ... It does seem to me that in an editor, where the user is actively modifying the data, it makes more sense to put the effort in, but even there I wouldn't necessarily insist on it. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XMLReader skip current element
    ... You should try Eclipse some time - it will compile (in some cases, ... just how handy would it be to just skip over an invalid ... Just because the remaining XML can be parsed, ... should try to recover. ...
    (microsoft.public.dotnet.languages.csharp)