Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






xml parseerror with userdata

UserPost

22:46
23/05/2012


charliehtrirand

New Member

posts 2

Using the default xmlReader, this data  works perfectly:


"<?xml version='1.0' encoding='utf-8'?>
<rows>
<page>1</page>
<total>1</total>
<records>2</records>
<row id='4'>
<cell>foo bar</cell>
<cell>5</cell>
<cell>4</cell>
<cell>1</cell>
<cell>3</cell>
<cell></cell>
</row>
<row id='3'>
<cell>bar bar</cell>
<cell>5</cell>
<cell>4</cell>
<cell>5</cell>
<cell>4</cell>
<cell></cell>
</row>
</rows>
"

Now all I do is add <userdata> and I get a parsererror:


"<?xml version='1.0' encoding='utf-8'?>

<userdata name="viewoption">22</userdata>

<rows>
<page>1</page>
<total>1</total>
<records>2</records>
<row id='4'>
<cell>foo bar</cell>
<cell>5</cell>
<cell>4</cell>
<cell>1</cell>
<cell>3</cell>
<cell></cell>
</row>
<row id='3'>
<cell>bar bar</cell>
<cell>5</cell>
<cell>4</cell>
<cell>5</cell>
<cell>4</cell>
<cell></cell>
</row>
</rows>
"

According to the documentation, this should work. Why isn't it working?

22:54
23/05/2012


charliehtrirand

New Member

posts 2

Well, it appears if I put <userdata> inside the root (i.e., inside <rows></rows>) it works, at least I don't get parsererror.


The examples in the documentation all show <userdata> outside the root.


About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

107 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9582

Posts: 28755

Membership:

There are 10093 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (6999 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information