Removing extra PI instructions

C

ChrisB

I have created a form that will be used to submit cXML structured files to a
supplier network. However, I need to remove some of the extra information
Infopath includes at the top of the xml file and add a DOCTYPE public
reference.

My current file output looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<?mso-infoPathSolution solutionVersion="1.0.0.44" productVersion="11.0.6357"
PIVersion="1.0.0.0" href="file:///C:\Oracle\xml\infopath\invoice.xsn"
name="urn:schemas-microsoft-com:eek:ffice:infopath:invoice:" ?>

<?mso-application progid="InfoPath.Document"?>

<cXML version="1.0" payloadID="user.payloadID"
timestamp="2005-08-17T15:08:52"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-08-16T14:33:09"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
xml:lang="en-us">

and I would like it to look like this:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE cXML SYSTEM
"http://xml.cXML.org/schemas/cXML/1.2.013/InvoiceDetail.dtd">

<cXML version="1.0" payloadID="user.payloadID"
timestamp="2005-08-17T15:08:52">


Can anyone point me in the right direction of how to go about changing this?
 
C

ChrisB

Help! Does anyone have any info on how to do what I have described in my
original post? At least tell me if it is impossible or not so I can quit
banging my head against the wall.

At the very least, is it possible to just add the line below to the top of
the resulting xml form file (right after the xml declaration). I have a
custom submit button and was hoping I could put some code in that would add
the line just before calling the submit function.

<!DOCTYPE cXML SYSTEM
"http://xml.cXML.org/schemas/cXML/1.2.013/InvoiceDetail.dtd">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top