서버 사이드에서 작성한 일반 XML 데이터를 어떻게 AUIGantt 에서 출력하는지를 보여주는 데모입니다.

XML 데이터는 row 로 묶어 원하는 필드를 하단에 작성한 모습입니다. 일반 JSON 데이터와 마찬가지로 부모(parent) 를 지시하는 태그가 존재하면 AUIGantt 에서 계층형 트리로 표현할 수 있습니다.

예를 들어 서버 사이드에서 작성한 XML의 데이터가 다음과 같습니다. 전체 XML 데이터 구조 보기

<row> <id>T0</id> <task_name>Proposal of Project</task_name> <charge>Lawrence</charge> <estimate_start>2014/02/01</estimate_start> <complete>62</complete> <estimate_end>2014/08/21</estimate_end> </row> <row> <id>T1</id> <parent>T0</parent> <task_name>Gathering of idea</task_name> <charge>Anna</charge> <estimate_start>2014/02/01</estimate_start> <complete>99</complete> <estimate_end>2014/03/31</estimate_end> </row>

이 XML 데이터를 토대로 AUIGantt 에 계층형으로 출력한 모습입니다.

결과적으로 사용자가 서버 사이드에서 작성한 XML 데이터는 AUIGantt 문서 데이터로 변환하여 삽입합니다.

참고 : AUIGantt 는 XML 로 작성된 데이터를 자바스크립트 Array-Object 인 JSON 형태로 변환하여 출력합니다. 따라서 특별한 이유가 없다면 JSON 데이터 작성을 권합니다.