User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: EasyXML

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    EasyXML

    Hello everyone <img src="/center/images/graemlins/smile.gif" alt="" />. Here is the latest build of my EasyXML object. It comes complete with examples and a step by step tutorial! The documentation still needs a bit more work, but I think the extension is mostly finished.

    Here is a link:

    EasyXML.zip

    Please test this extension harshly, I want to get the bugs worked out before release <img src="/center/images/graemlins/smile.gif" alt="" />. Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    Really good! <img src="/center/images/graemlins/laugh.gif" alt="" />
    I played with the example, found no bugs <img src="/center/images/graemlins/smile.gif" alt="" />

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    Thanks <img src="/center/images/graemlins/smile.gif" alt="" />. What do people think of the help file so far?

    Any ideas for new features?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    I like this object.

    Some comments:
    - It would be nice if the Donald's XML Editor would hold more. It seems to truncate after about 20 lines or so, when you save your XML document.

    - I am having trouble with Find Child with Value. Does not seem to locate my node.

    - I think this object needs a "Find Element with Name" action. I worked on a simple example to try to lookup the value of a node &lt;life&gt;123&lt;/life&gt; within my XML document, and I am finding it difficult. I do not want to hardcode the fact that this node is at index 12, for example, that would not be very flexible in case I add nodes above &lt;life&gt; later. Maybe I am just missing an action or something.

    See attached example which demonstrates above.

    JSJ
    Attached files Attached files

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    Good suggestion <img src="/center/images/graemlins/smile.gif" alt="" />.

    Find child is case sensative, so you should use "life". Also if you want to get the value "10" then getting GetChildText$( "EasyXML object" ) instead of the element name would be a wise choice.

    Your second one won't work becuase it is fine child, but the text is a child of an element that is a child of your node.

    I suppose I should add a find element feature, it is a good idea <img src="/center/images/graemlins/smile.gif" alt="" />. Thanks!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    Thanks for the clarification of that, and pointing out case senstive issue. It now appears "Find Child by Value" locates the node with the name ('life') specified properly, so that solves my problem and with that correction and your GetText, it displays the node contents properly.

    I guess the wording is slighly confusing on this method, though, as you say search by 'value' but it compares it to the node/element name. I was assuming value meant the context of your node due to the info in the help file here:

    &lt;People&gt;
    &lt;Person Age="50"&gt;Bob&lt;/Person&gt;
    &lt;Person Age="20"&gt;Ashley&lt;/Person&gt;
    &lt;/People&gt;

    If I was to take the Root Node of this document, I would get the People element. By taking the First Child of the People element, I would get the first People element which has a First Child which is a text node with the *value* "Bob".

    One other question, you do not seem to parse the root node as an element (fire the "on element" event) in auto-parse mode, is that normal behavior?

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    The "value" of an element node is the name of the element. The text is a child of that element. So using Find Child must look for the value of the node, and for elements it is the element name.

    I don't understand what you are saying becuase AutoParse does trigger the root node <img src="/center/images/graemlins/smile.gif" alt="" />.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    In the file I posted last time, the second frame was a modified version of your AutoParse frame, that displays a text prefix 'Element:' or 'Attribute:' when it parses. When I run that frame, I would have expected to see "Element:root" displayed for the root node somewhere in the list. Instead, only the attribute is displayed. Element: is displayed for all other nodes. Have I overlooked something?

  9. #9
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    Yes. The node depth of the root element is 0 <img src="/center/images/graemlins/wink.gif" alt="" />.

  10. #10
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: EasyXML

    I am thinking about just releasing this one to the public now, what do you guys think?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. EasyXML is missing.
    By Grim in forum Extension Development
    Replies: 5
    Last Post: 23rd November 2012, 05:39 AM
  2. Easyxml
    By nivram in forum Extension Development
    Replies: 5
    Last Post: 12th August 2011, 01:40 PM
  3. EasyXML - UTF-8?
    By TotalProjects in forum Extension Development
    Replies: 0
    Last Post: 15th September 2009, 10:56 PM
  4. Bug? App made that uses EasyXML needs EasyXML.mfx
    By Neonotso in forum Extension Development
    Replies: 20
    Last Post: 25th October 2007, 08:40 PM
  5. EasyXML
    By Jeff in forum Released Extensions
    Replies: 3
    Last Post: 25th December 2006, 09:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •