cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
jthi
Super User

How to enable XML_PARSE_HUGE for << XPath()?

I ran into some issues when running one older script using XPath. I got error message "Excessive depth in document: 256 use XML_PARSE_HUGE option". So how can that option be enabled? I found old post where someone has faced the same issue but there is no solution (question wasn't about this issue) Scripting Y Axis to be Log scale .

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Wafer Stacked.jmp");

gb = dt << Graph Builder(
	Size(490, 62454),
	Show Control Panel(0),
	Variables(X(:X_Die), X(:Y_Die), Page(:Lot_Wafer Label)),
	Elements(Position(1, 1), Box Plot(X, Legend(8))),
	Elements(Position(2, 1), Box Plot(X, Legend(9))),
	Invisible
);

rep = Report(gb);

Try(
	rep << XPath("//AxisBox");
,
	show(exception_msg);
);

gb << Close Window;
Close(dt, no save);

I can do what I want with some looping but I would prefer if I could (at least attempt) to do it by using XPath and sending single message to the list of references.

-Jarmo
2 REPLIES 2
shampton82
Level VII

Re: How to enable XML_PARSE_HUGE for << XPath()?

Hey @jthi ,

Did you ever find something for this error, it is killing me with using scripts to format a lot of levels when using the "Page" option in Graph Builder and arranging in rows.

 

Thanks

 

Steve

jthi
Super User

Re: How to enable XML_PARSE_HUGE for << XPath()?

No I didn't. In one application I changed to some sort of loop thing, in other I think modifying XPath might have been enough and in third I think I did XPath in smaller parts.

 

This might also work for Graph Builder + Page: try creating it first without Page, make modifications and then add the Page

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Wafer Stacked.jmp");

gb = dt << Graph Builder(
	Show Control Panel(0),
	Variables(X(:X_Die), X(:Y_Die)),
	Elements(Position(1, 1), Box Plot(X, Legend(8))),
	Elements(Position(2, 1), Box Plot(X, Legend(9))),
	Invisible
);

rep = Report(gb);

rep[AxisBox(2)] << Show Major Grid(1); // modify frame / axis

gb << Add Variable({:Lot_Wafer Label, Role("Wrap")}); // add page

gb << Size(490, 62454); // set size if needed

I can take a look if I can find the "latest" case I had to deal with (most likely was this exact case) on Monday

-Jarmo

Recommended Articles