×

Event-level parallel methods and apparatus for XML parsing

  • US 8,838,626 B2
  • Filed: 12/17/2009
  • Issued: 09/16/2014
  • Est. Priority Date: 12/17/2009
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented method for parsing XML data, the method comprising:

  • partitioning, by an events partitioning module of a computing device, the XML data into a plurality of XML chunks having a plurality of XML events contained therein, wherein partitioning includes determining a type of event associated with individual XML events of the plurality of XML events and ignoring character data contained within one or more XML events based, at least in part, on the type of event to prevent identification of character data contained within the one or more XML events from being identified as an XML event;

    parsing, by a plurality of instances of an events parsing module of the computing device, the plurality of chunks in parallel into sub-event streams, wherein parsing includes creating structure metadata to identify unresolved items in the sub-event streams to avoid a parsing error based on the unresolved items, wherein the unresolved items include one or more of an identity of an unresolved start element, an identity of an unresolved end element, or an identity of an unresolved prefix; and

    generating, by a post processing module of the computing device, a result event stream for the XML data from the sub-event streams, wherein generating the result event stream includes resolving an unresolved end element identified in the structure metadata with a preceding unresolved start element identified in the structure metadata or resolving an unresolved prefix identified in the structure metadata with a namespace of a preceding start element to avert the need to reparse the XML chunks that produced the unresolved item.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×