comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to IDL to XML using XMLffDOMDocument
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to IDL to XML using XMLffDOMDocument [message #52041 is a reply to message #51942] Wed, 20 December 2006 12:23 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Wed, 20 Dec 2006 10:22:02 -0800, Joan wrote:

> Hi,
>
> I'm in a trouble, i am trying to generate xml documents with
> IDL-pvwave's object (XMLffDOMDocument),
>
> I have to big 2 problems :
>
> 1- my xml is only one big line with all nodes at same line somebody
> have some reason¿

See the PRETTY_PRINT keyword on the IDLffXMLDOMDocument::Save method.

> 2- I generate
> oDoc = obj_new('XMLffDOMDocument')
> and i can't use AppendChild() on oDoc more than 4 nodes, if i
> do this the error is
>
>
> % IDLFFXMLDOMNODE::APPENDCHILD: DOM Exception: HIERARCHY_REQUEST_ERR:
> An
> attempt was made to insert a node where it is not
> permitted
>
> of course i need more than 4 nodes in xml

As the error message suggests, you're trying to add a child node in a way
that does not make sense in XML.

For example, a Document cannot have more than one Element as a direct
child, since there can be only one top-level Element in a Document. You
didn't say what types of nodes you are adding to the Document, so we can't
tell exactly what's wrong. But, I'd guess you are trying to add more than
one Element to the Document. Note that the IDLffXMLDOMDocument object has
a GetDocumentElement method that fetches the one Element that can be a
direct child of the Document.

You probably want to make a top-level Element, and then add other Elements
to that top-level Element as children.

Karl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: convert decimal -> hexadecimal
Next Topic: Re: convert decimal -> hexadecimal

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 02:13:49 PST 2025

Total time taken to generate the page: 0.40295 seconds