Classic ASP Framework
org.classicasp.util.XmlUtilEx

XML utilities.

Summary

Runs an XPATH expression against a Microsoft.
Loads an XML file, returns a Microsoft.
Loads an XML string, returns a Microsoft.
Transforms an XML-string using an XSLT-string, returns an ObjectEx.
Validates an XML-string against an XSD-string, returns an ObjectEx.

getXpath

Public Function getXpath(
ByRef vInputXml,
ByRef vInputXPath)
Runs an XPATH expression against a Microsoft.XMLDOM object, returns a variant.

Returns

Variant

loadFromFile

Public Function loadFromFile(ByVal vInputPath)
Loads an XML file, returns a Microsoft.XMLDOM object.

Returns

Object

loadFromString

Public Function loadFromString(ByRef vInputXml)
Loads an XML string, returns a Microsoft.XMLDOM object.

Returns

Object

transformWithXslt

Public Function transformWithXslt(
ByRef sXml,
ByRef sXslt)
Transforms an XML-string using an XSLT-string, returns an ObjectEx.

Returns

ObjectEx - {success:BooleanEx, message:StringEx, error:ObjectEx, result:Variant}

validateWithXsd

Public Function validateWithXsd(
ByRef sXml,
ByRef sXsd)
Validates an XML-string against an XSD-string, returns an ObjectEx.

Returns

ObjectEx - {success:BooleanEx, message:StringEx, error:ObjectEx}

'***ClassicASP.org
'Copyright 2010 ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify
'it under the terms of the GNU General Public License as published by
'the Free Software Foundation, version 3 of the License.

'ClassicASP-Framework is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'GNU General Public License for more details.

'You should have received a copy of the GNU General Public License
'along with ClassicASP-Framework. If not, see .

'For additional information please visit .

Created with TwinText