IT

XML 스키마를 시각화하는 방법?

lottoking 2020. 6. 29. 07:40
반응형

XML 스키마를 시각화하는 방법? [닫은]


나는 기본적으로 모든 코드 인 XML 스키마를 만들었고 코드가 다음과 같은 것을 생성 할 수있는 방법이 있는지 궁금했다.

여기에 이미지 설명을 입력하십시오

그렇다면 어떻게해야합니까?


공개 소스 명령 행 Java 애플리케이션 xsdvi 는 XML 스키마 정의에서 SVG 형식의 대화식 다이어그램을 작성합니다. 생성 된 SVG 파일은 사용자가 마우스 클릭으로 트리를 확장하거나 축소 할 수있는 최신 웹 브라우저로 표시 할 수 있습니다.

다음은 생성 된 다이어그램의 예입니다.

http://xsdvi.sourceforge.net/ipo.svg

소프트웨어는

http://sourceforge.net/projects/xsdvi/

다음과 같이 실행될 수 있습니다 (Java가 설치되어 있고 java.exe경로에 있다고 가정 ).

  1. dist/lib폴더로 이동하십시오 .
  2. 다음 명령을 실행하십시오 java -jar xsdvi.jar <input1.xsd> [<input2.xsd> [<input3.xsd> ...]] [style]

XSD 다이어그램 은 무료이며 (GNU 공개 라이센스) 빌드 할 필요가 없으며 대화식 다이어그램을 제공합니다. 파일을 열고 (처음에는 비어 있음) 다이어그램에서 원하는 유형을 추가하십시오. 꽤 직설적 인.

여기에 이미지 설명을 입력하십시오


오라클 JDeveloper를 11g는 내장 된 뷰어를 사용할 수있는 하나 우수한 내보기에 이클립스 (다른 불리한 비교 점 이외에 내가에만 설치 얻을 수있는, 인디고 하지만 대한 주노 ). 내가 실수하지 않은 경우 Oracle 은 JDeveloper를 무료로 제공합니다 (OTN에 등록 만 필요).

여기에 이미지 설명을 입력하십시오


훌륭한 XSD 지원 및 기타 여러 기능을 제공하는 XMLGrid 온라인 뷰어를 사용할 수 있습니다 .

  • XML 데이터 그리드에 XML 데이터를 표시합니다.
  • XML, XSL, XSLT, XSD, HTML 파일 형식을 지원합니다.
  • 기존 노드, 속성, 주석을 쉽게 수정하거나 삭제할 수 있습니다.
  • 새로운 노드, 속성 또는 주석을 쉽게 추가 할 수 있습니다.
  • XML 노드 트리를 쉽게 확장하거나 축소 할 수 있습니다.
  • XML 소스 코드를보십시오.

스크린 샷 :

스크린 샷


XSD에 대해보다 간단하고 텍스트 지향적 인 문서가 필요한 경우 XSD를보다 읽기 쉬운 HTML 형식으로 변환하는 XSLT 스타일 시트 인 xs3p를 확인하십시오 . 꽤 좋고 완전 무료입니다.

그것으로 충분하지 않다면, 개인적으로 Liquid XML Studio를 선호합니다 -다른 것보다 비싸지 않고 능력이 있습니다!


Linux (모노, apt-get데비안 에서 사용 가능 ) 및 Windows :

Windows를 사용하는 경우 다음을 살펴보십시오.

두 도구는 모두 무료이며 예제와 같이 유사한 시각화를 제공 할 수 있습니다.


이 그림은 Altova의 XMLSpy 와 같은 XML 스키마 편집 도구에서 생성됩니다 .

여러 가지 XML 도구가 있으며 모두 그래픽 XSD 뷰어가 포함됩니다. 브랜드 리더이기 때문에 XML Spy를 언급했습니다. 또한 Eclipse, Visual Studio 및 Oracle JDeveloper와 같은 많은 일반적인 IDE 가이 트릭을 수행 할 수 있습니다.


Visual Studio 2013에는 멋진 멋진 시각화 기능이 내장되어 있습니다.

File-> Open-> File .xsd를 선택한 다음 XML Schema Explorer에서 디자이너 화면으로 요소를 드래그하십시오.


우리는 DocFlex / XML XSDDoc 이라는 도구를 제공하여 두 가지를 동시에 즐길 수 있습니다.

  • XML 스키마의 다이어그램을 미리 설정하려면
  • To have all those diagrams embedded (and hyperlinked) in a highly sophisticated XML schema documentation

The diagrams in fact are generated not by us, but by Altova XMLSpy. We implemented an Integration with XMLSpy (with the full support of all diagram hyperlinks):

XMLSpy에 의해 생성 된 다이어그램이있는 XML 스키마 문서

Here you can see the full this doc: http://www.filigris.com/docflex-xml/xsddoc/examples/html/XMLSchema/index.html

The whole thing provides a functionality not offered by any single vendor right now on the market!

Some our customers were so impressed that they purchased an extra license for XMLSpy only because of our tool. (That's no joke!)


Currently, we've also implemented similar integrations with other XML editors:

With <oXygen/> XML Editor:

<oXygen> </ oXygen> XML 편집기로 생성 된 다이어그램이있는 XSDDoc

See: http://www.filigris.com/docflex-xml/OxygenXML/demo/html/xslt20/index.html

With Liquid XML Studio:

Liquid XML로 생성 된 다이어그램이있는 XSDDoc

See: http://www.filigris.com/docflex-xml/LiquidXML/demo/html/XMLSchema/index.html


Concerning what all those diagrams depict... Essentially, they are all about content model of XSD elements (as well as other XSD components that lead to elements: complexTypes, element/attribute groups). It seems, there are two approaches here:

  1. To show what a result content model (represented by the given component) would look. That's the approach of XMLSpy.
  2. To show how a particular content model (of the given component) was derived from other components. That's the approach of <oXygen/> XML and Liquid XML.

I personally believe that the diagrams generated by XMLSpy are more useful.

Yet, there were no attempts so far (at least known to me) to depict graphically anything else contained in XML schemas, although one can imagine many...


Here is my approach- download the freemind and CAM XML Template Editor. Then open CAM XML, create new Template from XML, View -> View Template As Mind Map
Pros of this solution:

  • It works locally, so secret files can be processed,
  • totally free of charge,
  • open source.

Cons:

  • Quite unstable with large (more than 20sh MB) files.

There is a new free-to-use webtool, where you can view any xml schema:

Online XML Schema Viewer

www.xml-tools.net

It's written completely in JavaScript, so it's running in most modern browsers.


We use Liquid XML Studio, it provides a intuitive editable representation of an XSD schema. It also shows the annotations inline, which we find very useful and the split code/gfx view is invaluable when writting or editing an XSD.

Liquid XML Studio XSD 편집기


If someone works with IBM Rational Application Developer then XSD browser is built in it.


Try my xsd-viewer available from https://github.com/santhosh-tekuri/jlibs.


Grid-ML Schema Viewer is great for searching and visualizing XML Schemas: https://gridml.com/xml-schema-viewer. I find it better than other tools when it comes to large schemas or when browsing through a diagram is not feasible. The tool also allows you to copy the XPath or JSON path of the selection item.

Grid-ML Schema Search Screen

참고 URL : https://stackoverflow.com/questions/2486758/how-to-visualize-an-xml-schema

반응형