Re: Problem editing galley- XML loses ID on resave

  •  12-12-2004, 7:12 PM

    Re: Problem editing galley- XML loses ID on resave

     
    Upon further investigation it seems that everything works -adding images ect-BUT when I delete the image I lose
    the above block of  XML (when the control resaves the XML.  All I am left with are the image blocks of xml:
    <image>
    Image data
    </image>
    SO then I upload a new photo now the Uploader resaves the new XML and adds:

    <xs:schemaid="NewDataSet"xmlns=""xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

    <xs:elementname="NewDataSet"msdata:IsDataSet="true">

    <xs:complexType>

    <xs:choicemaxOccurs="unbounded">

    <xs:elementname="image">

    <xs:complexType>

    <xs:sequence>

    <xs:elementname="url"type="xs:string"minOccurs="0"/>

    <xs:elementname="id"type="xs:string"minOccurs="0"/>

    <xs:elementname="title"type="xs:string"minOccurs="0"/>

    <xs:elementname="description"type="xs:string"minOccurs="0"/>

    <xs:elementname="date"type="xs:string"minOccurs="0"/>

    <xs:elementname="size"type="xs:string"minOccurs="0"/>

    <xs:elementname="width"type="xs:string"minOccurs="0"/>

    <xs:elementname="height"type="xs:string"minOccurs="0"/>

    <xs:elementname="t_width"type="xs:string"minOccurs="0"/>

    <xs:elementname="t_height"type="xs:string"minOccurs="0"/>

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    </xs:choice>

    </xs:complexType>

    </xs:element>

    </xs:schema>
     
    The above is different then the original as it lacks the :
    <xs:elementname="id"msdata:AutoIncrement="true"type="xs:int"/>
    in id.
    SO now I upload an image and it comes in to the xml with no <id> tag n property.
    This wont break it until I delete all the images EXCEPT the new one(s) without the ID.
    Now if I click to the imageinfo.aspx via the pop up it bombs as it has no ID to grab.
    HELP!!
     
    Thanks.
    J.

View Complete Thread