0

How can i read and pass the variables which are coming in through an xml file as an input to a php file ?

Scenario is my COM object pulls data from an application, i need to pass this information to a php script. How can i do this ? Can i use xml to pass this info to a php file which is called by initiating a web browser.

Any inputs will be really appreciated.

2 Answers 2

2

php provides you with easy to use basic XML-handling. check:

simpleXML

Basic logic:

generate your XML

pass xml file path to php

let simplexml do the parsing

hth

k

Sign up to request clarification or add additional context in comments.

Comments

0

See this link https://www.php.net/manual/en/refs.xml.php for all kinds of ways PHP can parse XML. They are:

# DOM
# DOM XML (PHP 4)
# libxml
# qtdom
# SDO
# SDO-DAS-Relational
# SDO DAS XML
# SimpleXML
# WDDX
# XML Parser
# XMLReader
# XMLWriter
# XSL
# XSLT (PHP4)

SimpleXML is one of the simplest, indeed but it sometimes is to simple and can't handle more advanced manipulation.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.