xml - Where is .xsd located for http://www.w3.org/2007/app? -



xml - Where is .xsd located for http://www.w3.org/2007/app? -

if i'm defining schema (using visual studio 2010's xml editor) business object, how can import external namespaces? i'm extending schema google commerce search, how define namespace-prefixed elements? e.g. when querying of product data, 1 element ,edited, belonging app namespace looks like:

<app:edited>2012-01-17t17:22:05.182z</app:edited>

visual studio suggests might need import .xsd file http://www.w3.org/2007/app namespace. need find other .xsd files rest of namespaces included in google product feeds? e.g. xmlns:sc , xmlns:scp find these? or going wrong?

<?xml version="1.0" encoding="utf-8"?> <xs:schema id="entry" xmlns:xs="http://www.w3.org/2001/xmlschema" targetnamespace="http://www.w3.org/2005/atom" elementformdefault="qualified" xmlns="http://www.w3.org/2005/atom" xmlns:app="http://www.w3.org/2007/app" xmlns:sc="http://schemas.google.com/structuredcontent/2009" xmlns:scp="http://schemas.google.com/structuredcontent/2009/products"> <xs:element name="entry"> <xs:complextype> <xs:sequence> <xs:element name="id" type="xs:anyuri"></xs:element> <xs:element name="published" type="xs:date"></xs:element> <xs:element name="updated" type="xs:date"></xs:element> <xs:element name="title" type="xs:string"></xs:element> <!-- how define <app:edited type="date" /> element here?? --> </xs:sequence> </xs:complextype> </xs:element> </xs:schema>

you first need hold of schemas. can add together them visual studio's schema store:

this means xml instance documents author in visual studio have access schema store validation perspective.

then modify schema. first import new schema:

<?xml version="1.0" encoding="utf-8"?> <xs:schema ... xmlns:app="http://www.w3.org/2007/app" ... > <xs:import namespace="http://www.w3.org/2007/app" /> ...

then create reference type want utilize schema

<xs:element name="entry"> <xs:complextype> <xs:sequence> ... <!-- how define <app:edited type="date" /> element here?? --> <xs:element ref="app:edited" /> </xs:sequence> </xs:complextype> </xs:element>

xml visual-studio-2010 xsd google-api

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -