Results 1 to 3 of 3

Thread: XMLReader removes \n from XML File attributes

  1. #1
    Sencha User omar.belkhodja's Avatar
    Join Date
    Sep 2007
    Location
    Tunisia
    Posts
    32
    Vote Rating
    0
      0  

    Default XMLReader removes \n from XML File attributes

    Hello,

    I'm using an XMLReader to load the formPanel items, with the attributes of the XML file. After rendering the formPanel, I can't see anymore the "\n" within TextArea field.

    Does somebody know about some similar issue ?
    You have to know before dreaming !

  2. #2
    Sencha User omar.belkhodja's Avatar
    Join Date
    Sep 2007
    Location
    Tunisia
    Posts
    32
    Vote Rating
    0
      0  

    Default

    Below I provide some piece of code on how my code looks like :

    Code:
    new Ext.FormPanel({
    reader 	   : new Ext.data.XmlReader({
    	record: 'user',
            fields: [{name: 'address', mapping: '@address'}]
    items: [
            new Ext.form.TextArea({name          : 'address'}
    ]
    })
    You have to know before dreaming !

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    address is an attribute of the user element?

    In XML attributes aren't allowed to contain \n characters. Your XML would be invalid!

Similar Threads

  1. How to read the attributes from an xml file and display them
    By nash99 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 18 Jun 2009, 11:38 PM
  2. XmlReader: Getting attributes and putting them in a table
    By jbaldwin in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Aug 2008, 2:24 PM
  3. XmlReader getting to attributes with colon in it
    By myj in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 23 Jun 2008, 9:48 PM
  4. XmlReader getting to attributes with colon in it
    By myj in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Jun 2008, 6:46 AM
  5. attributes in loaded xml file
    By sigidadon in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 17 May 2007, 11:22 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
  •