Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from ashtuchkin/master

Update "even more complex example"
  • Loading branch information...
commit ed66ba77a3aecb3a1d2dddf66748ec63610b7de7 2 parents 8458325 + eea166f
@dylang authored
Showing with 0 additions and 11 deletions.
  1. +0 −11 readme.md
View
11 readme.md
@@ -100,17 +100,6 @@ Everything should pass:
var example5 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: [ { _attr: { knowing: 'half the battle' } }, 'GI Joe'] }, { toy: [ { name: 'He-man' }, { description: { _cdata: '<strong>Master of the Universe!</strong>'} } ] } ] } ];
console.log(XML(example5, true));
/*
- <toys><toy>Transformers</toy><toy>GI Joe</toy><toy>He-man</toy></toys>
- <toys>
- <toy>Transformers</toy>
- <toy>GI Joe</toy>
- <toy>He-man</toy>
- </toys>
- <toys decade="80s" locale="US">
- <toy>Transformers</toy>
- <toy>GI Joe</toy>
- <toy>He-man</toy>
- </toys>
<toys decade="80s" locale="US">
<toy>Transformers</toy>
<toy knowing="half the battle">
Please sign in to comment.
Something went wrong with that request. Please try again.