You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Florian Roth <Fl...@in-gmbh.de> on 2009/12/02 18:26:33 UTC

atompub-server test post folder

Want to expand atompub-server with an postFolder Test. Similar to the Query post test.
Im getting Parsing errors. Can you help me out? This is the xml

(Name and type are class members)


public void writeTo(StreamWriter sw) {

            sw.startDocument();
            sw.startElement("entry", CMIS.CMIS_NS, CMIS.CMIS_PREFIX);

            sw.startElement("id").writeElementText(
                    "urn:uuid:00000000-0000-0000-0000-000000000000").endElement();
            sw.startElement("title").writeElementText(name).endElement();
            sw.startElement("updated").writeElementText("2009-01-01T00:00:00Z").endElement();
            sw.startElement("author").writeElementText("component test").endElement();
            sw.startElement("link").writeAttribute("rel", "alternate").writeAttribute(
                    "href", "").endElement();
            sw.startElement("summary").writeElementText("test (summary)").endElement();

            sw.startElement("object", CMIS.CMIS_NS,
                    "cmisra");
            sw.startElement("properties", CMIS.CMIS_NS, CMIS.CMIS_PREFIX);
            sw.startElement("propertyId", CMIS.CMIS_NS, CMIS.CMIS_PREFIX).writeAttribute(
                    "propertyDefinitionId", "cmis:objectTypeId");
            sw.startElement("value", CMIS.CMIS_NS, CMIS.CMIS_PREFIX).writeElementText(
                    type).endElement();

            sw.endElement();// propertyId
            sw.endElement();// properties
            sw.endElement();// object
            sw.endElement();// entry*/
            sw.endDocument();
        }


chears



in-integrierte informationssysteme GmbH
Am Seerhein 8 • 78467 Konstanz
http://www.in-gmbh.de/ • mailto:info@in-gmbh.de

Telefon: +49 7531 8145-0
Telefax: +49 7531 8145-81


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Sitz der Gesellschaft: Konstanz • Amtsgericht Freiburg i.B. • Registernummer: HRB 380976 • Geschäftsführer: Siegfried Wagner