meta tags cause invalid xml

S

Scott

When updating page content via the API, I am trying to add these two lines as
the first child elements of one:page

<one:Meta name="MeetingWorkspace" content="url here removed" />
<one:Meta name="MeetingDate" content="20070131" />


I'm basically generating the entire page and calling UpdatePageContent. If
I leave those two lines out the update completes fine. If I add those two
lines in right after the <one:page> tag, then I get an Invalid XML error from
COM. What, exactly, is it that makes the XML invalid at that point?
 
I

Ilya Koulchin

Scott said:
When updating page content via the API, I am trying to add these two lines as
the first child elements of one:page

<one:Meta name="MeetingWorkspace" content="url here removed" />
<one:Meta name="MeetingDate" content="20070131" />


I'm basically generating the entire page and calling UpdatePageContent. If
I leave those two lines out the update completes fine. If I add those two
lines in right after the <one:page> tag, then I get an Invalid XML error from
COM. What, exactly, is it that makes the XML invalid at that point?

Could be any one of a number of things. Have you run the XML through a
validator, and does it say that it's valid? You can also turn on API
debugging logging - look through Dan Escapa's blog for more details
(sorry, can't seem to find it atm, but I know he posted some info about it).

Ilya
 

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