Problem editing galley- XML loses ID on resave

Last post 12-17-2004, 12:51 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  12-12-2004, 7:12 PM 2991

    Problem editing galley- XML loses ID on resave

    Whe I edit a gallery-upon removing an image, via the pop up image gallery editor, The xml is resaved and loses the
    schema block of code:

    <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="&#x12;idth"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 new xml contains just the images.  The application fails on the next delete because it is missing:
    <xs:elementname="id"type="xs:string"minOccurs="0"/>
    Error says:  cannot find ID

    I am using version 3.0.

    Please advise.

    Thanks,
    DM
     

  •  12-12-2004, 7:12 PM 2992 in reply to 2991

    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.

  •  12-17-2004, 12:37 AM 3073 in reply to 2992

    Re: Problem editing galley- XML loses ID on resave

    HELLO........Adam are you there? 
    I have purchased 2 of your products and need a little help with this problem.
    Digitalmafia
  •  12-17-2004, 12:51 AM 3074 in reply to 3073

    Re: Problem editing galley- XML loses ID on resave

     
    Yes, I am online now.
     
    Sorry for the late response.
     
    I have made many tests recently. But I still can't reproduce the problem.
     
    Can you download the latest build and try again?
     
    Keep me posted.

    I will leave in about 30 minutes.

    .

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML