NAME

Google::Ads::Common::XPathSAXParser

DESCRIPTION

Implements a SAX type of XML parser based on the XML::XPath:XML::XPath. And it is basically used during deserialization to tie XPath module nodes with SOAP objects so the XPath module search functionalities can be used to find SOAP objects.

METHODS

parse

Main entry point to start the parsing of the XML and report to the registered handlers the parsed node in a depth-first traversal fashion as expected from a SAX parser.

Parameters

The XML to parse.

__parse_node

The parsing is done recursively through this method.

Parameters

The node being parsed.

namespace

Retrieves the expanded namespace name of the current parsed node or any given node.

Parameters

Optional an XPath node. If none given then the current parsed is used.

Returns

The registered namespace.

recognized_string

Retrieves a string representation of the current parsed node or any given node.

Parameters

Optional an XPath node. If none given then the current parsed is used.

Returns

The string representation.

Links a SOAP Object with its XPath node.

Parameters

The SOAP object to associate.

The XPath node.

get_node_from_object

Retrieves an XPath node given its associated SOAP Object.

Parameters

The SOAP object.

Returns

The associated XPath node if found.

get_object_from_node

Retrieves a SOAP Object given its associated XPath node..

Parameters

The XPath node.

Returns

The associated SOAP Object.

LICENSE AND COPYRIGHT

Copyright 2011 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

REPOSITORY INFORMATION

$Rev: $
$LastChangedBy: $
$Id: $