<?xml version="1.0" encoding="UTF-8"?>
//DTD约束
<!DOCTYPE root[
<!ELEMENT root (Program*)>
<!ELEMENT Program (Part*)>
<!ELEMENT Part (PN,PT,FNA,MASS,MARKET)>
<!ELEMENT PN (#PCDATA)>
<!ELEMENT PT (#PCDATA)>
<!ELEMENT FNA (#PCDATA)>
<!ELEMENT MASS (#PCDATA)>
<!ELEMENT MARKET (#PCDATA)>
<!ATTLIST Program Platform CDATA #REQUIRED>
<!ATTLIST Part name CDATA #REQUIRED>
]>
//xml文件
<root>
<Program>
<Part>
<PN>26699528</PN>
<PT>"L4G,M07"</PT>
<FNA>3400A</FNA>
<MASS>0.562</MASS>
<MARKET>ECEDEE</MARKET>
</Part>
</Program>
</root>
运用XML建立零件BOM
最新推荐文章于 2023-05-05 21:12:05 发布