Results 1 to 3 of 3

Thread: Editing XML

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    49
    Answers
    2
    Vote Rating
    0
      0  

    Default Editing XML

    In Flex, I could edit an XML string easily by doing this:

    Code:
    var searchTest:XML = <searchTestModels limit="15" offset ="0" token="#searchTests"><searchString></searchString></searchTestModels>;
    
    searchTest.searchString = "value";
    searchTest.@limit = 10;
    How can I easily do this same thing using Sencha?

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      0  

    Default

    I don't think ExtJs offers an API for XML manipulation, other than XML readers/writers for use with a Data Store.

    However, all modern browsers natively support XML parsing via javascript.

  3. #3
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
      0  

    Default

    I completely forgot about Ext.DomQuery. From the docs, "It will work on HTML and XML documents (if a content node is passed in).".

Tags for this Thread

Posting Permissions

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