Embedded view as XML Count problem

Here are the components:

it.xml - view with XML tags

$$ViewTemplate for it.xml - form with parent XML tags and it.xml embedded.

mainGraph - Form with a chart that needs XML values to load the chart.

Problem:

I’m passing URL + it.xml?OpenView&Count=1 to the graph, but the graph is pulling all of the records.

If I just put URL + it.xml?OpenView&Count=1 into the browser the count param works fine.

By the way the same happens for StartKey param.

Can tell me what I’m doing wrong.

Subject: Embedded view as XML Count problem

I figured it out. I needed to URLEncode the link to my XML.