Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

XML parser

Posted on 2002-06-19
4
Medium Priority
?
513 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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