XML extension: how to make it work?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-10-15 12:17 PM
2017-10-15
12:17 PM
I'm experiencing with the xml extension, but even cannot start it.
What's the problem with the following code (being in the Parameter script)?
channelTest = OPEN ("XML", "Teszt", "wl") OUTPUT (channelTest, "CreateDocument", "", "Teszt") CLOSE channelTest
GDL/Python/C++ dev
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-10-15 11:17 PM
2017-10-15
11:17 PM
Read this first, maybe it helps:
http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-gdl-xml-add-on
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-10-18 11:26 PM
2017-10-18
11:26 PM
Thanks for Your help, not too much. 😞
It describes reading a (prepared) read-only doc. My problem is with creating a new xml by the OUTPUT command.
Such a poor documentation.
It describes reading a (prepared) read-only doc. My problem is with creating a new xml by the OUTPUT command.
Such a poor documentation.
GDL/Python/C++ dev

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-10-19 10:10 AM
2017-10-19
10:10 AM
I haven't try, but I think the Script should be in the Master and OUTPUT has to be without brakes, like
OUTPUT channel, "CreateDocument", 0 , "Par_Set"
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-10-22 06:26 PM
2017-10-22
06:26 PM
Indeed.
This works:
Many thanks.
This works:
ChannelTest = OPEN("XML", varFileNameWithFullPath , "wf") OUTPUT ChannelTest, "CreateDocument", var1, "Teszt" input (ChannelTest, "NewPositionDesc", "", varDesc) OUTPUT ChannelTest, "NewElement AsFirstChild", varDesc, "Coord" input (ChannelTest, "MoveToNode ToFirstChild", varDesc, var0, var1, var2) OUTPUT ChannelTest, "NewText AsFirstChild", varDesc, GLOB_INTGUID OUTPUT ChannelTest, "NewElement AsFirstChild", varDesc, "X" input (ChannelTest, "MoveToNode ToFirstChild", varDesc, var0, var1, var2) OUTPUT ChannelTest, "NewText AsFirstChild", varDesc, str (SYMB_POS_X, 8, 3) OUTPUT ChannelTest, "NewElement AsNextSibling", varDesc, "Y" input (ChannelTest, "MoveToNode FromNextSibling", varDesc, var0, var1, var2) OUTPUT ChannelTest, "NewText AsFirstChild", varDesc, str (SYMB_POS_Y, 8, 3) CLOSE ChannelTestBut in the GDL Reference guide OUTPUT stands with brackets, I've checked.
Many thanks.
GDL/Python/C++ dev