New topic: 

Append XmlNode to other XmlNode

<http://forums.realsoftware.com/viewtopic.php?t=46104>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Carharttguy          Post subject: Append XmlNode to other 
XmlNodePosted: Sat Dec 01, 2012 6:12 am                         
Joined: Wed Sep 17, 2008 2:45 pm
Posts: 205                Hello,

I have a function, that returns an XmlNode. That function creates an XML that 
looks like this if I .tostring that XmlNode:

Quote:<control>
 <properties>
  <property name="Name" propertycode="3">Form</property>
  <property name="Left" propertycode="3">20</property>
  <property name="Top" propertycode="3">50</property>
  <property name="Width" propertycode="3">0</property>
  <property name="Height" propertycode="3">0</property>
  <property name="Layer" propertycode="3">0</property>
  <property name="Title" propertycode="3">FormTitle</property>
 </properties>
 <events>
  <event default="True" name="Open"></event>
 </events>
</control>

(I formatted it a bit, just to make the readabillity better.)

This looks like a valid XML to me. But when I try to append the node with that 
XML to another XMLNode this way:

form = platforms.AppendChild(f.toXML)
(f.toXML gives the XML output I showed above.)

I run into an XMLexception, but no other info, so I have no clue how to solve 
this. Can anybody steer me in the right direction?

Help greatly appreciated!      
_________________
My native language is not English.  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to