cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.

How to enable XML_PARSE_HUGE for << XPath()?

jthi
Super User

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