EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Including XML header after update

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#24688
Posted: 04/25/2013 12:53:48
by Rodrigo Godinho Palhano (Standard support level)
Joined: 04/26/2012
Posts: 12

I updated my XML BlackBox from version 9 to 10 and it started to include the XML header "<?xml version="1.0" encoding="UTF-16"?>" after signing.

Is there a property or something to disable this feature?
#24689
Posted: 04/25/2013 13:05:04
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us.

How do you save an XML document?
#24690
Posted: 04/25/2013 13:18:23
by Rodrigo Godinho Palhano (Standard support level)
Joined: 04/26/2012
Posts: 12

Sorry for writing without more details, i am in a hurry here...
I was searching for the problem and i came to this:

Stream := TStringStream.Create(aXml);
Result := TElXMLDOMDocument.Create;
Result.LoadFromStream(Stream , 'ansi');

Where "aXml" is my XML without the header. Then Result.OuterXML returns my XML with the header.
#24693
Posted: 04/25/2013 15:16:19
by Dmytro Bogatskyy (EldoS Corp.)

Quote
Where "aXml" is my XML without the header. Then Result.OuterXML returns my XML with the header.

Strange, an older version also should return an xml header in this case.
Anyway, to save xml document without the header you may use Result.DocumentElement.OuterXML
#24694
Posted: 04/25/2013 16:04:07
by Rodrigo Godinho Palhano (Standard support level)
Joined: 04/26/2012
Posts: 12

It worked. Thank you.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 512 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!