Questions tagged [txmldocument]

The wrapper class for process XML documents in Embarcadero Delphi programming environment. Dangerous for novices! Read the documentation!

The class is a front-end to several existing XML engines, depending on the operating system and other environment factors.

The class works in both reference-counted and explicit programmer-controlled memory management schemes at the same time.

This is very contrast to the usual behavior of Delphi stock and 3rd-party libraries and drives not yet bitten developers into repeating the same old faux pas endless times.

etc.

Hopefully with this wiki page created, at least that specific trouble would be less often repeated. At least for those developers, caring to fill the tags.

47 questions
1
vote
3 answers

Alternatives for XSLT transformations with Delphi XE8

I am trying to perform an XSLT transformation with Delphi XE8 and am running into problems. My XSL file refers to an external XSL file using an import statement whose href attribute has a relative path. The transform fails with the error "Named…
Cary Jensen
  • 3,751
  • 3
  • 32
  • 55
1
vote
1 answer

vXML.Active := True => EDOMParseError at “%25” char sequence

I have this problem in Delphi when I want to load an XML file that contains a "%25" in it's file name.. vXML := TXMLDocument.Create(nil); vXML.FileName := pFileName; try try vXML.Active := True; In debug mode there's an error in…
Jacek Rz.
  • 61
  • 5
1
vote
4 answers

How to Convert Ansi to UTF 8 with TXMLDocument in Delphi

It's possible to convert the XML to UTF-8 encoding in Delphi 6? Currently that's what I am doing: Fill TXMLDocument with AnsiString At the end convert the Data to UTF-8 by using WideStringVariable = AnsiToUtf8(Doc.XML.Text); Save the value of…
EProgrammerNotFound
  • 2,403
  • 4
  • 28
  • 59
1
vote
2 answers

Selecting Multiple XML Nodes from a document and then displaying in a TListbox Delphi

i have used IXMLDocument in delphi to create an XML File, i need to access the text value on each of the nodes called Manufacturer and display the results in a TListBox when Button1 is Clicked. Here is how i have created the XML File, this is called…
amit2k5
  • 97
  • 2
  • 9
1
vote
1 answer

Obtain IXMLDOMDocument2 from IXMLDocument

I am using Delphi 2010 with only the stock standard VCL libraries. The target system is win32. If I have a reference to an IXMLDocument, how can I obtain an IXMLDOMDocument2 interface to the underlying object that IXMLDocument wraps?
Sean B. Durkin
  • 12,659
  • 1
  • 36
  • 65
0
votes
1 answer

IXMLDocument in component accessed from different threads: where to call CoInitializeEx?

I am writing a threadsafe component which logs xml string to a file. The component's public method will be called from many different (types of) threads. To simplify, in the example below the component only has to return an XML string from…
vincent
  • 78
  • 7
0
votes
1 answer

Delphi - Can TXMLDocument be configured to ignore incorrect DTD entities?

I'm writing Delphi code with RAD Studio XE7. In one of my projects, I need to parse several SVG files to draw their content on the screen. For that I use the TXMLDocument parser. One of my source SVG contains this XML data:
Jean-Milost Reymond
  • 1,833
  • 1
  • 15
  • 36
0
votes
1 answer

Difficulty parsing XML using a TXMLDocument

I have not used XML before, and am having difficulty parsing XML using a TXMLDocument. (Delphi 10.1) In my app I need to find placename and postcode etc. of where a photograph was taken using the Lat and Long from the EXIF information by doing a…
BadDog
  • 21
  • 2
0
votes
1 answer

using txmldocument (c++ builder 2007) to open a gpx file

I have a gpx-file that I want to open with the vcl component txmldocument under the c++ builder 2007. the file should be compatible with the xml-version 1.0 because it is written in the first line as one can see in the code below. I enter the file…
0
votes
2 answers

EDOMParseError ErrorCode list

Where I can find the list of EDOMParseError.ErrorCode values? I can't find it in Delphi source or in MSDN. For example, if I set XMLDocument.FileName to incorrect url, I've got Error code: -2146697210 Reason: System error: -2146697210 Where this…
Y.N
  • 4,989
  • 7
  • 34
  • 61
0
votes
4 answers

Poorly defined XML, get node and contents of all child nodes as string concat with spaces?

Here's some fantastic example XML:
Here is some texta tagmight . Things are justbut I have to parse it because that's what needs to be done and I can't
somedev
  • 1,053
  • 1
  • 9
  • 27
0
votes
2 answers

£ character in XML

Using Delphi XE2 TXMLDocument and MSXML £1.00 x 100 parsing error as does parsing error as does The £ character is not noted as an invalid character. Is this an…
Ephraim
  • 199
  • 1
  • 2
  • 18
0
votes
1 answer

Access violation when try get xml node

Im try develop a helper to read/write and control an instance of TXMLDocument. I write a simple unit for this work. The unit have a procedure that assign the instance to global variable, and set some variables for document control. The unit is: unit…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
0
votes
1 answer

Delphi Exception when Preserving Whitespace in TXMLDocument

This is a follow up to my earlier post: String to XmlNode Delphi (or how to add an xml fragment to TXMLDocument) It seemed appropriate to start a new question... I am essentially adding well formed xml snippets to an existing xmldocument. The…
sse
  • 987
  • 1
  • 11
  • 30
0
votes
3 answers

deleting TXMLDocument object Embarcadero

I've got an object to delete: XMLDoc = new TXMLDocument(NULL); but I have no idea how to do that... it's not working: delete XMLDoc; XMLDoc->free(); When I try just delete object the program crashes. So it's a piece of my code. I've got a…
pors
  • 25
  • 5