Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Pike Module Reference:

module version 1.1, prepared

  MODULE Public
Modules
Parser

  MODULE Public.Parser
Modules
XML2

  MODULE Public.Parser.XML2
Classes
Constants
Node

Methods
parse_xml()
substituteEntitiesDefault()

Method substituteEntitiesDefault

int Public.Parser.XML2.substituteEntitiesDefault(int def)


Method parse_xml

object(Node) Public.Parser.XML2.parse_xml(string xml)

Description

Parse an string containing XML.

Returns

a Node object containing the root of the tree.

  CLASS Public.Parser.XML2.Node
Methods
children()
get_attributes()
get_line_no()
get_node_name()
get_ns()
get_ns_attributes()
get_nss()
get_text()
next()
parent()
prev()

Method get_line_no

int Public.Parser.XML2.Node()->get_line_no()

Returns

the line number the node is present on


Method get_text

string Public.Parser.XML2.Node()->get_text()

Description

gets the contents of a text node, or the contents and children of an element.


Method get_ns

string Public.Parser.XML2.Node()->get_ns()

Description

returns the default name space uri for the element


Method get_nss

mapping Public.Parser.XML2.Node()->get_nss()

Description

gets a list of all known namespaces for this element.

Returns

a mapping of "short" prefixes to namespace uris.


Method get_attributes

mapping Public.Parser.XML2.Node()->get_attributes()

Description

returns all attributes, irrespective of namespace

Returns

a mapping of attribute name to attribute value.


Method get_ns_attributes

mapping Public.Parser.XML2.Node()->get_ns_attributes(string ns_prefix)

Description

given a namespace uri, return all elements for that namespace present in the element.

Returns

a mapping of attribute names to attribute values.


Method children

array(object(Node)) Public.Parser.XML2.Node()->children()

Description

get all children of this node

Returns

an array of all elements with are a direct child of this element.


Method parent

object(Node) Public.Parser.XML2.Node()->parent()

Description

get the Node which is the parent of this Node.


Method next

object(Node) Public.Parser.XML2.Node()->next()

Description

get the next sibling of this Node.

Returns

the next node which is a sibling of this node.


Method prev

object(Node) Public.Parser.XML2.Node()->prev()

Description

get the previous sibling of this Node.

Returns

the previous node which is a sibling of this node.


Method get_node_name

string Public.Parser.XML2.Node()->get_node_name()

Description

gets the name of this node, if it has one.

  CLASS Public.Parser.XML2.Constants
gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University