×

XML message validation in a network infrastructure element

  • US 8,090,839 B2
  • Filed: 06/21/2006
  • Issued: 01/03/2012
  • Est. Priority Date: 06/21/2005
  • Status: Active Grant
First Claim
Patent Images

1. A data processing apparatus, comprising:

  • a plurality of network interfaces that are coupled to a data network for receiving one or more packets therefrom and sending one or more packets thereto;

    one or more processors;

    a switching system coupled to the one or more processors and packet forwarding logic, wherein the switching system and packet forwarding logic are configured to receive packets on a first network interface, determine a second network interface on which to send the packets, and to send the packets on the second network interface;

    logic which when executed by the one or more processors is operable to cause;

    prior to receiving, over the data network, an application-layer message that comprises the one or more packets;

    receiving and storing one or more validation scope rules that define a portion of an extensible markup language (XML) schema for validation;

    receiving and storing the XML schema and one or more XML element objects that represent XML elements of the XML schema and comprise a corresponding constructor method which when executed returns a data type of one of the XML element objects;

    computing hash codes for each of the XML element objects in the XML schema, and storing the hash codes in a hashtable;

    wherein a hash code for an XML element object is computed by hashing a plurality of characters in the XML element object;

    wherein the hashtable comprises hash codes for all the XML element objects in the XML schema;

    upon receiving, over the data network, the application-layer message comprising the one or more of packets;

    identifying a particular XML element in an XML payload of the application-layer message, wherein the particular XML element is within the portion of the XML schema defined in the one or more validation scope rules;

    in response to finding a name of the particular XML element in the XML payload of the application-layer message in the hashtable, invoking the corresponding constructor method to return the data type of the particular XML element;

    determining whether the particular XML element in the XML payload and the data type of the particular XML element conform to the XML schema by hashing a plurality of characters in an XML element object of the particular XML element to compute a particular hash value and comparing the particular hash value for the particular XML element with the hash codes stored in the hashtable; and

    performing a responsive action based on whether the particular XML element conforms to the XML schema.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×