Remove First Two Lines in XML using XML Application.ExportXML (1 Viewer)

hoychep

New member
Local time
Today, 03:18
Joined
Jun 11, 2014
Messages
7
Hi,


I am using Application.ExportXML vba Function in MS Access 2010 and I want to remove the first two lines on my XML File


<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:eek:d="urn:schemas-microsoft-com:eek:fficedata" generated="2014-06-12T13:08:16">

<eparcelorder>
<workorderno>20177569</workorderno>
<ArticleNumber>7HB0002108010225</ArticleNumber>
<serviceLevelNo>26</serviceLevelNo>
<shippeddate>2014-03-19T00:00:00</shippeddate>
</eparcelorder>
</dataroot>

will this possible from the function that I am using?


Thanks!
 
Last edited:

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 11:18
Joined
Sep 12, 2006
Messages
15,653
obviously once you snip0 off the 2 lines, you won't have a valid xml file

if you are only exporting a "snippet", I would be inclined to generate the file manually. otherwise i expect you will have to process the completed file to remove the first 2 rows.
 

Users who are viewing this thread

Top Bottom