Ways to "PCDATA invalid char value xx"

398 views
Skip to first unread message

Bill S

unread,
Sep 23, 2014, 11:29:28 PM9/23/14
to zorba...@googlegroups.com
What options exist in Zorba to deal with PCDATA in income xml?  I want to process xml  and ignore these characters.

Thanks

William Candillon

unread,
Sep 24, 2014, 12:17:09 AM9/24/14
to zorba...@googlegroups.com
Hi,

Did you look at the options in parse
http://www.zorba.io/documentation/latest/modules/zorba/data-converters/xml
?
<DTD-validate/>, <default-DTD-attributes/>,
<parse-external-parsed-entity/>, <no-CDATA/>.
> --
> You received this message because you are subscribed to the Google Groups
> "Zorba Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to zorba-users...@googlegroups.com.
> To post to this group, send email to zorba...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/zorba-users/61a39a67-cadd-4b39-9fc8-a835da863482%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Bill S

unread,
Sep 24, 2014, 11:33:30 AM9/24/14
to zorba...@googlegroups.com
Sorry but after reading the documentation I'm not sure I understand which of these applies to my situation.  I have the code snippet and want to exclude any characters <32 ascii that would cause the xml to fail the try.

let $xml :=
   try {
    (:parse-xml(file:read-text($abspath)) :)
     x:parse(file:read-text($abspath),
   <opt:options>
     <opt:parse-external-parsed-entity/>
   </opt:options>)
    } catch * { () }
Reply all
Reply to author
Forward
0 new messages