ECS and nodeTypes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gotejjeken
    New Member
    • Sep 2007
    • 27

    #1

    ECS and nodeTypes

    I am creating an XML document using the Element Construction Kit API. The document comes out looking fine, however when I go to read a node's text with Javascript I find out that they are all element nodes.

    How can I change these element nodes to text nodes using ECS? The only "add" option I see is .addElement(). Would I somehow have to go and define new elements and set them to be text nodes that way?
  • Gotejjeken
    New Member
    • Sep 2007
    • 27

    #2
    Never mind, after some deeper looking I found that .addElement() does indeed create a text node if only a string is used as an argument.

    Comment

    Working...