On Sun, Jun 22, 2008 at 8:07 AM, Bill Russell <[EMAIL PROTECTED]> wrote:
[snip]
>
> <datafield tag=\"245\" ind1=\"1\" ind2=\"2\">
> <subfield code=\"a\">A guide to the electrical contractor's exam /</subfield>
> <subfield code=\"c\">Alan Stanfield.</subfield>
> </datafield>
>
> I suspect it should be something like:
>
> <datafield tag="245" ind1="1" ind2="2">
> <subfield code="a">A guide to the electrical contractor's exam /</subfield>
> <subfield code="c">Alan Stanfield.</subfield>
> </datafield>
>

The escaped quotes ( \" ) are because the XML is passed inside a JSON
string literal, so the " marks must be escaped by adding the slash
before them.  In other words, the <record ... </record> section is not
yet XML, just a string of text.  Once the JSON that is carrying that
text is deserialized the escaping is removed, then the XML string can
be pulled out and deserialized as well.  To simulate that by  hand
just remove the \ before " and \ characters.

-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone: 1-877-OPEN-ILS (673-6457)
 | email: [EMAIL PROTECTED]
 | web: http://www.esilibrary.com

Reply via email to