?
Solved

XML parser

Posted on 2002-06-19
4
Medium Priority
?
512 Views
Last Modified: 2010-04-04
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
Comment
Question by:Hamlet081299
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
freshman3k earned 300 total points
ID: 7094435
0
 
LVL 5

Author Comment

by:Hamlet081299
ID: 7094580
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
 
LVL 6

Expert Comment

by:tecbuilder
ID: 7099262
TurboPower at www.turbopower.com has an XML Parser as well.
0
 
LVL 5

Author Comment

by:Hamlet081299
ID: 7115431
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question