Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-25 Thread Torsten Bonde Christiansen
On 2012-06-23 01:01, Daniel Gaspary wrote: On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen t...@epidata.info wrote: DDIInstance := XMLDoc.CreateElementNS('ddi:instance:3_0', 'DDIInstance'); DDIInstance.Prefix := 'ns1';// this gives me: ns1:DDIInstance

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-22 Thread Daniel Gaspary
On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen t...@epidata.info wrote:  DDIInstance := XMLDoc.CreateElementNS('ddi:instance:3_0', 'DDIInstance');  DDIInstance.Prefix := 'ns1';        // this gives me: ns1:DDIInstance xmlns:ns1=ddi:instance:3_0 which is great.  // now I would

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-21 Thread Daniel Gaspary
On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen t...@epidata.info wrote: How can i get the xmlns:a=ddi:archive:3_0 without the additional attribute AND maintain the namespace + prefix in later elements? Hi. It's hard to test without a (small please) comlete XML example because the

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-21 Thread Daniel Gaspary
I have created a bug report[1] with an example of malformed file. [1] http://bugs.freepascal.org/view.php?id=22299 On Thu, Jun 21, 2012 at 3:51 PM, Daniel Gaspary dgasp...@gmail.com wrote: On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen t...@epidata.info wrote: How can i get the

[fpc-pascal] DOM and namespaces with prefix

2012-06-19 Thread Torsten Bonde Christiansen
Hi all. I am working on implementing a lite export routine from our program to the DDI XML format: http://www.ddialliance.org/Specification/DDI-Lifecycle/3.1/XMLSchema/ A convinient way of working with the DDI format is to prefix elements using common set of prefix'es, but having spent most