Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xacobeo::xs(3pm) [debian man page]

Xacobeo::XS(3pm)					User Contributed Perl Documentation					  Xacobeo::XS(3pm)

NAME
Xacobeo::XS - Functions rewritten in XS. SYNOPSIS
use Xacobeo::XS; Xacobeo::XS->load_text_buffer($textview->get_buffer, $node, $namespaces); Xacobeo::XS->load_tree_store($treeview->get_store, $node, $namespaces); DESCRIPTION
This package provides some functions that are implemented through XS. These functions are much faster than their Perl counterpart. CLASS METHODS
The following class methods are available: load_text_buffer Populates a Gtk2::TextBuffer with the contents of an XML::LibXML::Node. The elements and attributes are displayed with the prefix corresponding to their respective namespaces. The XML document is also displayed with proper syntax highlighting. Parameters: o $buffer The text buffer to fill. Must be an instance of Gtk2::TextBuffer. o $node The node to display in the the text view. Must be an instance of XML::LibXML::Node. o $namespaces The namespaces declared in the document. Must be an hash ref where the keys are the URIs and the values the prefixes of the namespaces. load_tree_store Populates a Gtk2::TreeStore with the contents of an XML::LibXML::Node. The tree will display only the nodes of type element. Furthermore, the elements are displayed with the prefix corresponding to their respective namespaces. Parameters: o $store The text store to fill. Must be an instance of Gtk2::TreeStore. o $node The node to display in the the tree view. Must be an instance of XML::LibXML::Node. o $namespaces The namespaces declared in the document. Must be an hash ref where the keys are the URIs and the values the prefixes of the namespaces. get_node_mark Returns a unique identifier for the given node. Parameters: o $node The node. Must be an instance of XML::LibXML::Node. get_node_path Returns a unique XPath path for the given XML::LibXML::Node. The path will use node names using the right prefixes. Parameters: o $node The node for which the path has to be computed. Must be an instance of XML::LibXML::Node. o $namespaces The namespaces declared in the document. Must be an hash ref where the keys are the URIs and the values the prefixes of the namespaces. AUTHORS
Emmanuel Rodriguez <potyl@cpan.org>. COPYRIGHT AND LICENSE
Copyright (C) 2008,2009 by Emmanuel Rodriguez. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2011-11-16 Xacobeo::XS(3pm)

Check Out this Related Man Page

Xacobeo(3pm)						User Contributed Perl Documentation					      Xacobeo(3pm)

NAME
Xacobeo - XPath (XML Path Language) visualizer. SYNOPSIS
xacobeo file [xpath] DESCRIPTION
This program provides a simple graphical user interface (GUI) for executing XPath queries and seeing their results. The GUI tries to provide all the elements that are needed in order to write, test and execute XPath queries without too many troubles. It displays the Document Object Model (DOM) and the namespaces used. The program registers the namespaces automatically and each element is displayed with its associated namespaces. All is performed with the idea of being able of running an XPath query as soon as possible without having to fight with the document's namespaces and by seeing automatically under which namespace each element is. RATIONALE
The main idea behind this application is to provide a simple way for building XPath queries that will be latter integrated in to a program or XSLT transformation paths. Therefore, this program goal is to load an XML document and to display it as an XML parser sees it. Thus each node element is prefixed with its namespace. IMPLEMENTATION
This program uses XML::LibXML (libxml2) for all XML manipulations and Gtk2 for the graphical interface. LIMITATIONS
For the moment, the program focuses only on XPath and doesn't allow the XML document to be edited. PROJECT
The project is hosted on Google Code (http://xacobeo.googlecode.com/) which provides the latest source code (SVN trunk) and a simple bug tracking. Although Google Code provides a download facility, the project's source code bundles will always be published through CPAN. It's easier this way for the project and after all this is a Perl project! BUGS
Please when possible try to submit the bugs through the Google Code Issue Tracker (http://code.google.com/p/xacobeo/issues/list) otherwise simply create a ticket through RT. AUTHORS
Emmanuel Rodriguez <potyl@cpan.org>. COPYRIGHT AND LICENSE
Copyright (C) 2008 by Emmanuel Rodriguez. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2011-11-16 Xacobeo(3pm)
Man Page