XML - SimpleConcept-instance.xml:
Kód: Vybrať všetko
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Charles Hoffman, CPA, UBmatrix: 2005-07-07 -->
<xbrl xmlns="http://www.xbrl.org/2003/instance"
xmlns:link="http://www.xbrl.org/2003/linkbase"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ci="http://www.UBmatrix.com/Patterns/SimpleConcept"
xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
xsi:schemaLocation="http://www.UBmatrix.com/Patterns/SimpleConcept SimpleConcept.xsd">
<link:schemaRef xlink:type="simple" xlink:href="SimpleConcept.xsd" />
<context id="D-2003">
<entity>
<identifier scheme="http://www.SampleCompany.com">SAMP</identifier>
</entity>
<period>
<startDate>2003-01-01</startDate>
<endDate>2003-12-31</endDate>
</period>
</context>
<context id="D-2002">
<entity>
<identifier scheme="http://www.SampleCompany.com">SAMP</identifier>
</entity>
<period>
<startDate>2002-01-01</startDate>
<endDate>2002-12-31</endDate>
</period>
</context>
<context id="D-2001">
<entity>
<identifier scheme="http://www.SampleCompany.com">SAMP</identifier>
</entity>
<period>
<startDate>2001-01-01</startDate>
<endDate>2001-12-31</endDate>
</period>
</context>
<unit id="U-Monetary">
<measure>iso4217:EUR</measure>
</unit>
<ci:NetIncome contextRef="D-2003" unitRef="U-Monetary" decimals="INF">7024000</ci:NetIncome>
<ci:NetIncome contextRef="D-2002" unitRef="U-Monetary" decimals="INF">7210000</ci:NetIncome>
<ci:NetIncome contextRef="D-2001" unitRef="U-Monetary" decimals="INF">6659000</ci:NetIncome>
</xbrl>Kód: Vybrať všetko
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Charles Hoffman, CPA, UBmatrix: 2005-07-07 -->
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xbrli="http://www.xbrl.org/2003/instance"
xmlns:link="http://www.xbrl.org/2003/linkbase"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ci="http://www.UBmatrix.com/Patterns/SimpleConcept"
targetNamespace="http://www.UBmatrix.com/Patterns/SimpleConcept"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<annotation>
<appinfo>
<link:linkbaseRef xlink:type="simple" xlink:href="SimpleConcept-label.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
<link:linkbaseRef xlink:type="simple" xlink:href="SimpleConcept-presentation.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
</appinfo>
</annotation>
<import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />
<element id="ci_NetIncome" name="NetIncome" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" />
</schema>Ked sa to snazim v NetBeans zvalidovat tak mi to pise:
Kód: Vybrať všetko
XML validation started.
Checking file:/D:/WWW/Web/etc/SimpleConcept-instance.xml...
cvc-elt.1: Cannot find the declaration of element 'xbrl'. [9]
Referenced entity at "file:/D:/WWW/Web/etc/SimpleConcept.xsd".
Referenced entity at "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd".
Referenced entity at "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd".
Referenced entity at "http://www.xbrl.org/2003/xl-2003-12-31.xsd".
Referenced entity at "http://www.xbrl.org/2003/xlink-2003-12-31.xsd".
cvc-id.1: There is no ID/IDREF binding for IDREF 'D-2003'. [48]
XML validation finished.
ANY IDEAS?
UPDATE
prakticky ten xml subor sa sklada ako keby z dvoch casti:
1. ta pociatocna po tie tagy ci: sa validuje podla "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
2. tie tagy ci: sa validuju podla tej schemy co som ju sem prilozil "SimpleConcept.xsd"
ked skusim zakomentovat ci: tagy a zmenim "SimpleConcept.xsd" XML Schemu podla ktorej sa to XML validuje na XML Schemu tej prvej casti "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" dokument sa zvaliduje spravne a tag "xbrl" je najdeny.
upravene XML:
Kód: Vybrať všetko
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by Charles Hoffman, CPA, UBmatrix: 2005-07-07 -->
<xbrl xmlns="http://www.xbrl.org/2003/instance"
xmlns:link="http://www.xbrl.org/2003/linkbase"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ci="http://www.UBmatrix.com/Patterns/SimpleConcept"
xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
xsi:schemaLocation="http://www.xbrl.org/2003/instance http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd">
<!--xsi:schemaLocation="http://www.UBmatrix.com/Patterns/SimpleConcept SimpleConcept.xsd">-->
<link:schemaRef xlink:type="simple" xlink:href="SimpleConcept.xsd" />
<context id="D-2003">
<entity>
<identifier scheme="http://www.SampleCompany.com">SAMP</identifier>
</entity>
<period>
<startDate>2003-01-01</startDate>
<endDate>2003-12-31</endDate>
</period>
</context>
<context id="D-2002">
<entity>
<identifier scheme="http://www.SampleCompany.com">SAMP</identifier>
</entity>
<period>
<startDate>2002-01-01</startDate>
<endDate>2002-12-31</endDate>
</period>
</context>
<context id="D-2001">
<entity>
<identifier scheme="http://www.SampleCompany.com">SAMP</identifier>
</entity>
<period>
<startDate>2001-01-01</startDate>
<endDate>2001-12-31</endDate>
</period>
</context>
<unit id="U-Monetary">
<measure>iso4217:EUR</measure>
</unit>
<!--
<ci:NetIncome contextRef="D-2003" unitRef="U-Monetary" decimals="INF">7024000</ci:NetIncome>
<ci:NetIncome contextRef="D-2002" unitRef="U-Monetary" decimals="INF">7210000</ci:NetIncome>
<ci:NetIncome contextRef="D-2001" unitRef="U-Monetary" decimals="INF">6659000</ci:NetIncome>
-->
</xbrl>
ten je tam napisany ako:
Kód: Vybrať všetko
<import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />