목차 숨기기

XML File Structure and Example

Notes about the XML file structure:

  • The system trims leading spaces in attribute names.
  • The system sometimes trims leading spaces in attribute values.
  • Use lower case for all elements and attribute names.
  • Use of an unknown element or attribute name causes the import to fail.

The following example describes most aspects of the XML file structure.

<?xml version="1.0"?>
<xml>
  <transactions>
    <transaction 
      date="1196854268"
      type="wf_import_document_attributes"
      vaultname="2008 file vault">
      <document 
        aliasset=""
        pdmweid="0"
        idattribute="Number"
        id="89-NOAO-4200-1236"
        idcfgname="">
        <configuration name="">
          <attribute name="Cost" value="0.44"/>
          <attribute name="ArticleID" value="A-012-BB"/>
        </configuration>
      </document>
    </transaction>
  </transactions> 
</xml>

where:

XML Element XML Attribute Description
<?XML version="1.0"?>   The file must start with this element.
<XML>   This element wraps the transactions element.
<transactions>   The file contains only one transactions element.
<transaction ?gt;   The file can contain multiple transaction elements.
  date The number of seconds elapsed since 12:00 AM January 1st 1970. Must be an integer greater than 0.
type Indicates that the transaction contains data to import into files or items in the vault.
  Vaultname Name of the vault this transaction relates to. The import rule processes transactions with a matching vault name.
  Aliasset The alias set to use to look up child attribute nodes. The attribute names in the XML file are matched with the alias-mapped variable.

For example, an alias set containing the variable X2Number with an attribute NR in the XML file is configured to match the data card variable Number.

An empty value matches the data card variables with the attribute names in the XML file.

<document ?gt;   Contains criteria for matching the import values with a file or item in the vault. It matches the unique internal ID of a file or item, or a variable value.
  Pdmweid Matches the transaction with the internal DocumentID from the Documents table of a file or item in the vault database.

When you use this attribute, [id], [idattribute], and [idcfgname] are ignored. To use another matching technique, set the value to 0 or omit this attribute.

  Idattribute The data card variable or alias to use to match a file or item in the vault.
  Id Variable value to use when searching for files or items. Searches for the value using the variable name, idattribute, and the optional configuration, Idcfgname, in the VariableValue database table .

If multiple files or items match, values are imported for all but are written only to those that pass the import transition action.

  Idcfgname Name of the configuration, if any, to which to match the variable value. If this attribute has no value, all configurations of a file are considered for matching.
<configuration ?gt; name Configuration of the file data card to update with the attribute values. If this attribute has no value, all configurations are updated.

Create multiple configuration elements to import different values to different configurations.

<attribute ?gt; name Name of the data card variable to update, in the form VariableAlias.Alias or Variable.VariableName.
  value Value to use when setting the specified variable. Cannot exceed 1024 characters.


이 도움말에 대한 피드백 제공

SOLIDWORKS는 도움말 정보의 개선을 위한 고객님의 제안 사항과 의견을 환영합니다. 제안하고자 하는 의견을 아래 양식에 작성하여 도움말 문서 팀에 직접 전달할 수 있습니다. 문서 팀은 제품에 관한 기술적인 지원은 하지 않습니다. 기술 지원에 관한 정보는 여기를 클릭하십시오.

* 필수 입력

 
*전자 메일:  
제목:   도움말에 대한 피드백
페이지:   XML File Structure and Example
*사용자 의견:  
*   개인정보 보호정책을 읽었으며 본 정책에 따라 Dassault Systèmes에서 내 개인 정보를 사용하는 것에

인쇄 항목

인쇄할 콘텐츠 범위 선택:

x

Internet Explorer 7 이전 버전을 사용하고 있습니다. 페이지를 최적화하려면 사용 브라우저를 Internet Explorer 7 이상으로 업그레이드합니다.

 이 메시지를 다시 표시하지 않음
x

웹 도움말 콘텐츠 버전: SOLIDWORKS PDM 2014 SP05

SOLIDWORKS에서 웹 도움말 기능을 비활성화하고 로컬 도움말을 사용하려면, 도움말 > SOLIDWORKS 웹 도움말 사용을 클릭합니다.

웹 도움말 인터페이스나 검색 기능에서 발생한 오류 사항을 보고하려면, 로컬 지원 서비스 담당자에게 문의하십시오. 개별 도움말 항목에 대한 피드백을 제공하려면, 각 도움말 페이지의 "이 단원에 대한 피드백 제공" 링크를 사용하십시오.