• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

XML parser

I need to parse an XML document, but I am finding limitations with the TXMLDocument component in Delphi 6.

I hope that someone can indicate a way around these problems, but if not a suggestion of a good solid alternate XML component will win the points.

Here's a simple example of the kind of document I need to parse...

<template>
<logo/>
<p>Here is some <b>bolded</b> text</p>
<p>A field gets inserted here <field name="afield" width="10" align="right"/></p>
</template>

When I try to traverse the nodes there are problems because of the embedded tags (e.g. <b> inside <p>) that make it hard to get to the text (e.g. the "Here is some " part).

Ideas?
0
Hamlet081299
Asked:
Hamlet081299
  • 2
1 Solution
 
Hamlet081299Author Commented:
I'm always a little reluctant to use any sort of third party components, but I'm going to try put the destructor XML parser.  So far it looks promising...
0
 
tecbuilderCommented:
TurboPower at www.turbopower.com has an XML Parser as well.
0
 
Hamlet081299Author Commented:
In the end I have gone back to the built in XML component.  I found that with a bit of tweaking it was able to do what I wanted.

The destructor implementation was okay, but didn;t quite give me the level of control I wanted.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now