I'm trying to generate an XML schema, for future validations, where some attributes contain a specific namespace, and others do not:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:g="http://base.google.com/ns/1.0" version="2.0">
<title>Titulo do XML</title>
<description> Descricao do XML </description>
<link>http://www.linkDoXml.com.br</link>
<item>
<g:id>11111111111</g:id>
<title> Titulo do item </title>
<description> Descricao do item </description>
<g:category> Categoria 2 </g:category>
<g:product_type>tipo 1</g:product_type>
</item>
<item>
<g:id>2222222222</g:id>
<title> Titulo do item 2</title>
<description> Descricao do item 2</description>
<g:category> Categoria 2 </g:category>
<g:product_type>tipo 1</g:product_type>
</item>
</root>
In this example, I have the "id", "category" and "product_type" attributes with the namespace "g", which is the Google Shopping namespace ( link ), and the rest of the attributes without namespace.
What would be the schema of this xml?