- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我生成了以下 XML
XML
<?xml version="1.0" encoding="UTF-16"?>
<catalogue xmlns="http://api.anteenaa.com/schemas/brand/v3/product">
<products>
<product>
<brandProductId>414367</brandProductId>
<categoryCodes>
<categoryCode>DAY DRESSES (0002)</categoryCode>
</categoryCodes>
<productNames>
<productName>Nola Animal Dress</productName>
</productNames>
<productShortDescriptions>
<productShortDescription>Nola Animal Dress</productShortDescription>
</productShortDescriptions>
<productLongDescriptions>
<productLongDescription>A standout print of exotic animals makes our Nola dress for girls a bright idea for daytime dos. With a scallop hem, sequin embellishments and tassel neckline, this colourful cotton number will have all eyes on her style. It features a bow and cut-out detail at the back, and is fully lined.</productLongDescription>
</productLongDescriptions>
<season>SS18</season>
<genders>
<gender>Girls</gender>
</genders>
<sizeGridCode>8</sizeGridCode>
<materialComposition>
<compositionComponent componentName="Outer">
<material name="Polyester" percentage="100"/>
<material name="Cotton Trim" percentage="100"/>
<material name="Cotton Lining" percentage="100"/>
</compositionComponent>
</materialComposition>
<productCommonAttributes>
<productCommonAttribute key="AP01_comp_lining">cotton</productCommonAttribute>
<productCommonAttribute key="AP01_comp_outer">cotton</productCommonAttribute>
<productCommonAttribute key="AP01_style">Dress</productCommonAttribute>
<productCommonAttribute key="AP01_type">Dress</productCommonAttribute>
</productCommonAttributes>
<productCategoryAttributes>
<productCategoryAttribute key="det_occasion">Leisure</productCategoryAttribute>
<productCategoryAttribute key="form_neckline">Round</productCategoryAttribute>
<productCategoryAttribute key="form_trouser_rise">Short</productCategoryAttribute>
<productCategoryAttribute key="info_countryOrigin">IND</productCategoryAttribute>
<productCategoryAttribute key="info_exclusivity">None</productCategoryAttribute>
<productCategoryAttribute key="info_guarantee">n/a</productCategoryAttribute>
<productCategoryAttribute key="IronMethod">Refer to product label</productCategoryAttribute>
<productCategoryAttribute key="ironTemp">Cool Iron</productCategoryAttribute>
<productCategoryAttribute key="washMethod">machine wash</productCategoryAttribute>
<productCategoryAttribute key="washTemp">40</productCategoryAttribute>
<productCategoryAttribute key="waterproof">false</productCategoryAttribute>
<productCategoryAttribute key="beltIncluded">false</productCategoryAttribute>
<productCategoryAttribute key="dressDetail">Other</productCategoryAttribute>
<productCategoryAttribute key="fasteningType">No fastensing</productCategoryAttribute>
<productCategoryAttribute key="waterResistant">n/a</productCategoryAttribute>
<productCategoryAttribute key="dim_length_overall_desc">Short</productCategoryAttribute>
<productCategoryAttribute key="dim_length_sleeve_desc">Sleeveless</productCategoryAttribute>
</productCategoryAttributes>
<articles>
<article>
<brandArticleSku>4143672632</brandArticleSku>
<ean>5045461435478</ean>
<brandProductLineId>41436726</brandProductLineId>
<sizeGridValue>12-13 Years</sizeGridValue>
<brandColourNames>
<brandColourName locale="gb_EN">Ivory</brandColourName>
</brandColourNames>
<colourCodes>
<colourCode rank="3">26</colourCode>
</colourCodes>
<articleMedia>
<media>
<mediaType>Images</mediaType>
<sortOrder>3</sortOrder>
</media>
</articleMedia>
</article>
<article>
<brandArticleSku>4143672633</brandArticleSku>
<ean>5045461435409</ean>
<brandProductLineId>41436726</brandProductLineId>
<sizeGridValue>5 Years</sizeGridValue>
<brandColourNames>
<brandColourName locale="gb_EN">Ivory</brandColourName>
</brandColourNames>
<colourCodes>
<colourCode rank="3">26</colourCode>
</colourCodes>
<articleMedia>
<media>
<mediaType>Images</mediaType>
<sortOrder>3</sortOrder>
</media>
</articleMedia>
</article>
</articles>
</product>
</products>
</catalogue>
XSD
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema version="1.0.0" xmlns="http://api.anteena.com/schemas/brand/v3/product"
targetNamespace="http://api.anteena.com/schemas/brand/v3/product"
xmlns:common="http://api.anteena.com/schemas/brand/v3/commonTypes"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:import namespace="http://api.anteena.com/schemas/brand/v3/commonTypes" schemaLocation="commonTypes.xsd" />
<xs:element name="catalogue">
<xs:complexType>
<xs:sequence>
<xs:element ref="header"/>
<xs:element name="products">
<xs:complexType>
<xs:sequence>
<xs:element ref="product" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="header">
<xs:complexType >
<xs:sequence>
<xs:element name="brandLogo" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="product">
<xs:complexType>
<xs:sequence>
<xs:element name="brandProductId" type="xs:string"/>
<xs:element name="categoryCodes" type="categoryCodes"/>
<xs:element name="productNames" type="productNames"/>
<xs:element name="productShortDescriptions" type="productShortDescriptions"/>
<xs:element name="productLongDescriptions" type="productLongDescriptions"/>
<xs:element name="season" type="xs:string"/>
<xs:element name="genders" type="genders"/>
<xs:element name="sizeGridCode" type="xs:string"/>
<xs:element name="materialComposition" type="materialComposition"/>
<xs:element name="productSubBrandCode" type="xs:string" minOccurs="0"/>
<xs:element name="productCommonAttributes" type="productCommonAttributes" minOccurs="0"/>
<xs:element name="productCategoryAttributes" type="productCategoryAttributes" minOccurs="0"/>
<xs:element name="keywords" type="keywords" minOccurs="0"/>
<xs:element name="productBullets" type="productBullets" minOccurs="0"/>
<xs:element name="productDeliveryServiceCodes" type="productDeliveryServiceCodes" minOccurs="0"/>
<xs:element name="extensions" type="common:extensions" minOccurs="0"/>
<xs:element name="articles">
<xs:complexType>
<xs:sequence>
<xs:element ref="article" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="categoryCodes">
<xs:sequence>
<xs:element name="categoryCode" type="categoryCode" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="genders">
<xs:sequence>
<xs:element name="gender" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productName">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" use="optional" name="locale"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="productNames">
<xs:sequence>
<xs:element name="productName" type="productName" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productShortDescriptions">
<xs:sequence>
<xs:element name="productShortDescription" type="common:localeDescription" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productLongDescriptions">
<xs:sequence>
<xs:element name="productLongDescription" type="common:localeDescription" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productCommonAttributes">
<xs:sequence>
<xs:element name="productCommonAttribute" type="productAttribute" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productCategoryAttributes">
<xs:sequence>
<xs:element name="productCategoryAttribute" type="productAttribute" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productBullets">
<xs:sequence>
<xs:element name="bulletSet" type="bulletSet" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="bulletSet">
<xs:sequence>
<xs:element name="productBullet" type="productBullet" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="locale" type="xs:string"/>
</xs:complexType>
<xs:complexType name="productDeliveryServiceCodes">
<xs:sequence>
<xs:element name="deliveryServiceCode" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="productAttribute">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="key" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="productBullet">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="order" type="xs:int"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="article">
<xs:complexType>
<xs:sequence>
<xs:element name="brandArticleSku" type="common:brandArticleSku"/>
<xs:element name="ean" type="common:ean"/>
<xs:element name="brandProductLineId" type="xs:string"/>
<xs:element name="sizeGridValue" type="xs:string"/>
<xs:element name="perpetualStock" type="xs:boolean" minOccurs="0"/>
<xs:element name="brandColourNames" type="brandColourNames"/>
<xs:element name="colourCodes" type="colourCodes"/>
<xs:element name="articleMedia" type="common:articleMedia" minOccurs="0"/>
<xs:element name="CategoryAttributes" type="categoryAttributes" minOccurs="0"/>
<xs:element name="extensions" type="common:extensions" minOccurs="0"/>
<xs:element name="channels" type="channels"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- channels type Definition -->
<xs:complexType name="channels">
<xs:sequence>
<xs:element name="countryChannel" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="wholesale" minOccurs="0" type="xs:boolean"/>
<xs:element name="excludeRetailerChannels" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="excludeRetailerChannel" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="price" type="price" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="countryCode" type="xs:string"/>
<xs:attribute name="active" type="xs:boolean" />
</xs:complexType>
</xs:element>
<xs:element name="retailerChannel" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="wholesale" minOccurs="0" type="xs:boolean"/>
<xs:element name="price" type="price" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="channelCode" type="xs:string"/>
<xs:attribute name="active" type="xs:boolean" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="price">
<xs:sequence>
<xs:element name="priceContextCode" type="xs:string"/>
<xs:element name="currency" type="xs:string"/>
<xs:element name="brandRRP" type="xs:double"/>
<xs:element name="currentPrice" type="xs:double"/>
<xs:element name="previousPrice" minOccurs="0" type="xs:double"/>
<xs:element name="vatTreatmentCode" type="xs:int"/>
<xs:element name="extensions" minOccurs="0" type="common:extensions"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="colourCodes">
<xs:sequence>
<xs:element name="colourCode" type="colourCode" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="brandColourNames">
<xs:sequence>
<xs:element name="brandColourName" type="common:localeDescription" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="categoryAttributes">
<xs:sequence>
<xs:element name="categoryAttribute" type="productAttribute" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="articleMedia">
<xs:sequence>
<xs:element name="media" type="media" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="media">
<xs:sequence>
<xs:element name="mediaType" type="xs:string"/>
<xs:element name="mediaURL" type="xs:string" minOccurs="0" />
<xs:element name="mediaFileReference" type="xs:string" minOccurs="0" />
<xs:element name="sortOrder" type="xs:int"/>
<xs:element name="extensions" type="common:extensions" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="categoryCode">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="order" type="xs:int"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="colourCode">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="rank" type="xs:int"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="keywords">
<xs:sequence>
<xs:element name="keywordSet" type="keywordSet" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="keywordSet">
<xs:sequence>
<xs:element name="keyword" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="locale" type="xs:string" use="optional" />
</xs:complexType>
<xs:complexType name="materialComposition">
<xs:sequence>
<xs:element name="compositionComponent" type="compositionComponent" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="compositionComponent">
<xs:sequence>
<xs:element name="material" type="material" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="componentName" use="optional" type="xs:string"/>
</xs:complexType>
<xs:complexType name="material">
<xs:attribute name="name" type="xs:string" use="optional"/>
<xs:attribute name="percentage" type="common:percentage" use="optional"/>
</xs:complexType>
</xs:schema>
在验证 xml 时,它显示这样的错误
[{"inputErrorMessage":"cvc-complex-type.2.4.a: Invalid content was found starting with element mediaType. One of {\"http://api.anteena.com/schemas/brand/v3/commonTypes\":media} is expected.
我在 stackoverflow 和 google 上看到了与此问题相关的 max all 帖子,但首先我无法理解为什么会发生这种情况以及可以解决什么问题..?
任何人都可以帮助理解这个问题并解决这个问题......?这是我在这个问题上花费的第三天..!
更新:
<common:articleMedia>
<common:media>
<common:mediaType>Images</mediaType>
<common:sortOrder>3</sortOrder>
</common:media>
</common:articleMedia>
commonTypes.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://api.anteena.com/schemas/brand/v3/commonTypes"
xmlns="http://api.anteena.com/schemas/brand/v3/commonTypes"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:simpleType name="brandCode">
<xs:restriction base="xs:integer" />
</xs:simpleType>
<!-- ean type Definition (11 to 13 digits) -->
<xs:simpleType name="ean">
<xs:restriction base="xs:string">
<xs:pattern value="(\\s|[0-9]{11,13})?" />
</xs:restriction>
</xs:simpleType>
<!-- brandsku type Definition -->
<xs:simpleType name="brandArticleSku">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
<!-- percentage type Definition -->
<xs:simpleType name="percentage">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="extension">
<xs:sequence>
<xs:element name="extensionName" type="xs:string"/>
<xs:element name="extensionValue" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<!-- address type Definition -->
<xs:complexType name="address">
<xs:sequence>
<xs:element name="retailerCustomerNumber" type="xs:integer"/>
<xs:element name="title" type="xs:string"/>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="lastName" type="xs:string"/>
<xs:element name="address1" type="AddressStringType"/>
<xs:element name="address2" type="AddressStringType" minOccurs="0"/>
<xs:element name="address3" type="AddressStringType" minOccurs="0"/>
<xs:element name="address4" type="AddressStringType" minOccurs="0"/>
<xs:element name="address5" type="AddressStringType" minOccurs="0"/>
<xs:element name="address6" type="AddressStringType" minOccurs="0"/>
<xs:element name="zip" type="AddressStringType"/>
<xs:element name="city" type="AddressStringType"/>
<xs:element name="state" type="AddressStringType" minOccurs="0"/>
<xs:element name="country" type="AddressStringType"/>
<xs:element name="addressString" type="xs:string"/>
<xs:element name="email" type="email"/>
<xs:element name="homeTel" minOccurs="0" type="telephone"/>
<xs:element name="mobileTel" minOccurs="0" type="telephone"/>
<xs:element name="workTel" minOccurs="0" type="telephone"/>
<xs:element name="extensions" type="extensions" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<!-- Standard Address String Type -->
<xs:simpleType name="AddressStringType">
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
<!-- email type Definition -->
<xs:simpleType name="email">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
<!-- telephone type Definition -->
<xs:simpleType name="telephone">
<xs:restriction base="xs:string">
<xs:minLength value="0"/>
<xs:maxLength value="20"/>
</xs:restriction>
</xs:simpleType>
<!-- money type Definition -->
<xs:simpleType name="money">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="2" />
</xs:restriction>
</xs:simpleType>
<!-- Generic Price Type definition -->
<xs:simpleType name="priceType">
<xs:restriction base="xs:decimal">
<!-- Price must be Greater than Zero -->
<xs:minExclusive value="0"/>
<!-- Maximum of 2DP supported -->
<xs:fractionDigits value="2" />
</xs:restriction>
</xs:simpleType>
<!-- type extensions Definition -->
<xs:complexType name="extensions">
<xs:sequence>
<xs:element name="extension" type="extension" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="localeDescription">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="locale" type="localeType"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="localeType">
<xs:restriction base="xs:string">
<xs:length value="5" />
<xs:pattern value="[a-z]{2}(_|-)[A-Z]{2}" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="articleMedia">
<xs:sequence>
<xs:element name="media" type="media" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="media">
<xs:sequence>
<xs:element name="mediaType" type="xs:string"/>
<xs:element name="mediaURL" type="xs:string" minOccurs="0" />
<xs:element name="mediaFileReference" type="xs:string" minOccurs="0" />
<xs:element name="sortOrder" type="xs:int"/>
<xs:element name="extensions" type="extensions" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
最佳答案
您的 XML 文件需要进行大量更正,包括:
common:
命名空间前缀并将其用于 media
、mediaType
、和 sortOrder
元素。anteena.com
,而不是 anteenaa.com
。这是针对您的 XSD 有效的 XML 文件:
<?xml version="1.0" encoding="UTF-8"?>
<catalogue xmlns="http://api.anteena.com/schemas/brand/v3/product"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:common="http://api.anteena.com/schemas/brand/v3/commonTypes"
xsi:schemaLocation="http://api.anteena.com/schemas/brand/v3/product try.xsd">
<header/>
<products>
<product>
<brandProductId>414367</brandProductId>
<categoryCodes>
<categoryCode>DAY DRESSES (0002)</categoryCode>
</categoryCodes>
<productNames>
<productName>Nola Animal Dress</productName>
</productNames>
<productShortDescriptions>
<productShortDescription>Nola Animal Dress</productShortDescription>
</productShortDescriptions>
<productLongDescriptions>
<productLongDescription>A standout print of exotic animals makes our Nola dress for girls a bright idea for daytime dos. With a scallop hem, sequin embellishments and tassel neckline, this colourful cotton number will have all eyes on her style. It features a bow and cut-out detail at the back, and is fully lined.</productLongDescription>
</productLongDescriptions>
<season>SS18</season>
<genders>
<gender>Girls</gender>
</genders>
<sizeGridCode>8</sizeGridCode>
<materialComposition>
<compositionComponent componentName="Outer">
<material name="Polyester" percentage="100"/>
<material name="Cotton Trim" percentage="100"/>
<material name="Cotton Lining" percentage="100"/>
</compositionComponent>
</materialComposition>
<productCommonAttributes>
<productCommonAttribute key="AP01_comp_lining">cotton</productCommonAttribute>
<productCommonAttribute key="AP01_comp_outer">cotton</productCommonAttribute>
<productCommonAttribute key="AP01_style">Dress</productCommonAttribute>
<productCommonAttribute key="AP01_type">Dress</productCommonAttribute>
</productCommonAttributes>
<productCategoryAttributes>
<productCategoryAttribute key="det_occasion">Leisure</productCategoryAttribute>
<productCategoryAttribute key="form_neckline">Round</productCategoryAttribute>
<productCategoryAttribute key="form_trouser_rise">Short</productCategoryAttribute>
<productCategoryAttribute key="info_countryOrigin">IND</productCategoryAttribute>
<productCategoryAttribute key="info_exclusivity">None</productCategoryAttribute>
<productCategoryAttribute key="info_guarantee">n/a</productCategoryAttribute>
<productCategoryAttribute key="IronMethod">Refer to product label</productCategoryAttribute>
<productCategoryAttribute key="ironTemp">Cool Iron</productCategoryAttribute>
<productCategoryAttribute key="washMethod">machine wash</productCategoryAttribute>
<productCategoryAttribute key="washTemp">40</productCategoryAttribute>
<productCategoryAttribute key="waterproof">false</productCategoryAttribute>
<productCategoryAttribute key="beltIncluded">false</productCategoryAttribute>
<productCategoryAttribute key="dressDetail">Other</productCategoryAttribute>
<productCategoryAttribute key="fasteningType">No fastensing</productCategoryAttribute>
<productCategoryAttribute key="waterResistant">n/a</productCategoryAttribute>
<productCategoryAttribute key="dim_length_overall_desc">Short</productCategoryAttribute>
<productCategoryAttribute key="dim_length_sleeve_desc">Sleeveless</productCategoryAttribute>
</productCategoryAttributes>
<articles>
<article>
<brandArticleSku>4143672632</brandArticleSku>
<ean>5045461435478</ean>
<brandProductLineId>41436726</brandProductLineId>
<sizeGridValue>12-13 Years</sizeGridValue>
<brandColourNames>
<brandColourName locale="gb_EN">Ivory</brandColourName>
</brandColourNames>
<colourCodes>
<colourCode rank="3">26</colourCode>
</colourCodes>
<articleMedia>
<common:media>
<common:mediaType>Images</common:mediaType>
<common:sortOrder>3</common:sortOrder>
</common:media>
</articleMedia>
<channels/>
</article>
<article>
<brandArticleSku>4143672633</brandArticleSku>
<ean>5045461435409</ean>
<brandProductLineId>41436726</brandProductLineId>
<sizeGridValue>5 Years</sizeGridValue>
<brandColourNames>
<brandColourName locale="gb_EN">Ivory</brandColourName>
</brandColourNames>
<colourCodes>
<colourCode rank="3">26</colourCode>
</colourCodes>
<articleMedia>
<common:media>
<common:mediaType>Images</common:mediaType>
<common:sortOrder>3</common:sortOrder>
</common:media>
</articleMedia>
<channels/>
</article>
</articles>
</product>
</products>
</catalogue>
关于java - cvc-复杂-类型.2.4.a : Invalid content was found starting with element Media,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48910997/
我正在编写一个具有以下签名的 Java 方法。 void Logger(Method method, Object[] args); 如果一个方法(例如 ABC() )调用此方法 Logger,它应该
我是 Java 新手。 我的问题是我的 Java 程序找不到我试图用作的图像文件一个 JButton。 (目前这段代码什么也没做,因为我只是得到了想要的外观第一的)。这是我的主课 代码: packag
好的,今天我在接受采访,我已经编写 Java 代码多年了。采访中说“Java 垃圾收集是一个棘手的问题,我有几个 friend 一直在努力弄清楚。你在这方面做得怎么样?”。她是想骗我吗?还是我的一生都
我的 friend 给了我一个谜语让我解开。它是这样的: There are 100 people. Each one of them, in his turn, does the following
如果我将使用 Java 5 代码的应用程序编译成字节码,生成的 .class 文件是否能够在 Java 1.4 下运行? 如果后者可以工作并且我正在尝试在我的 Java 1.4 应用程序中使用 Jav
有关于why Java doesn't support unsigned types的问题以及一些关于处理无符号类型的问题。我做了一些搜索,似乎 Scala 也不支持无符号数据类型。限制是Java和S
我只是想知道在一个 java 版本中生成的字节码是否可以在其他 java 版本上运行 最佳答案 通常,字节码无需修改即可在 较新 版本的 Java 上运行。它不会在旧版本上运行,除非您使用特殊参数 (
我有一个关于在命令提示符下执行 java 程序的基本问题。 在某些机器上我们需要指定 -cp 。 (类路径)同时执行java程序 (test为java文件名与.class文件存在于同一目录下) jav
我已经阅读 StackOverflow 有一段时间了,现在我才鼓起勇气提出问题。我今年 20 岁,目前在我的家乡(罗马尼亚克卢日-纳波卡)就读 IT 大学。足以介绍:D。 基本上,我有一家提供簿记应用
我有 public JSONObject parseXML(String xml) { JSONObject jsonObject = XML.toJSONObject(xml); r
我已经在 Java 中实现了带有动态类型的简单解释语言。不幸的是我遇到了以下问题。测试时如下代码: def main() { def ks = Map[[1, 2]].keySet()
一直提示输入 1 到 10 的数字 - 结果应将 st、rd、th 和 nd 添加到数字中。编写一个程序,提示用户输入 1 到 10 之间的任意整数,然后以序数形式显示该整数并附加后缀。 public
我有这个 DownloadFile.java 并按预期下载该文件: import java.io.*; import java.net.URL; public class DownloadFile {
我想在 GUI 上添加延迟。我放置了 2 个 for 循环,然后重新绘制了一个标签,但这 2 个 for 循环一个接一个地执行,并且标签被重新绘制到最后一个。 我能做什么? for(int i=0;
我正在对对象 Student 的列表项进行一些测试,但是我更喜欢在 java 类对象中创建硬编码列表,然后从那里提取数据,而不是连接到数据库并在结果集中选择记录。然而,自从我这样做以来已经很长时间了,
我知道对象创建分为三个部分: 声明 实例化 初始化 classA{} classB extends classA{} classA obj = new classB(1,1); 实例化 它必须使用
我有兴趣使用 GPRS 构建车辆跟踪系统。但是,我有一些问题要问以前做过此操作的人: GPRS 是最好的技术吗?人们意识到任何问题吗? 我计划使用 Java/Java EE - 有更好的技术吗? 如果
我可以通过递归方法反转数组,例如:数组={1,2,3,4,5} 数组结果={5,4,3,2,1}但我的结果是相同的数组,我不知道为什么,请帮助我。 public class Recursion { p
有这样的标准方式吗? 包括 Java源代码-测试代码- Ant 或 Maven联合单元持续集成(可能是巡航控制)ClearCase 版本控制工具部署到应用服务器 最后我希望有一个自动构建和集成环境。
我什至不知道这是否可能,我非常怀疑它是否可能,但如果可以,您能告诉我怎么做吗?我只是想知道如何从打印机打印一些文本。 有什么想法吗? 最佳答案 这里有更简单的事情。 import javax.swin
我是一名优秀的程序员,十分优秀!