How to generate XSD of large XML file
-
2012年4月9日 上午 06:40
SQLXMLBulkLoad needs xsd schema to load data to SQL Server. How do I generate xsd schema of 1 Gb xml file? I tried to use xsd.exe, but it seems to load xml file into the memory first - I get OutOfMemory error
PS: I use C# for my app
- 已編輯 Andrey Gordeev 2012年4月9日 上午 06:48
- 已編輯 Andrey Gordeev 2012年4月9日 上午 10:40
所有回覆
-
2012年4月10日 下午 12:59Anyone?
-
2012年4月10日 下午 09:03
I could do it on a 8GB+ file with trang and jing at
http://code.google.com/p/jing-trang/downloads/list
trang needs jing and java
just dump the jing stuff in the trang directory and put the xml-file there too for ease of use
cmdline:
java -jar trang.jar <file-to_xsd>.xml <xsd-name>.xsd
Cheers
-
2012年4月11日 上午 10:23
Thanks for replying! But I'm not able to use Java
- 已編輯 Andrey Gordeev 2012年4月11日 上午 10:24
-
2012年4月11日 上午 11:23解答者
Can you get hold of a smaller version of the file?
-
2012年4月12日 上午 04:27
I can't get it from the source, but, probably, I can take first 3-5 Mb of XML file to create schemaCan you get hold of a smaller version of the file?
-
2012年5月14日 下午 01:31
check out this link for the solution.
http://docs.oracle.com/cd/E21043_01/integrate.1111/e12644/xml_file.htm

