It doesn't have to do with a parser error after all. I get
the same error if
I try to start a job and the capture card isn't present.
The active x
control seems to always throw that error during an
exception. What must have
happened was that the capture card couldn't be opened.
Brian
-----Original Message-----
From: Steve McMillen [mailto:stevemc real.com]
Sent: Wednesday, July 26, 2006 1:51 PM
To: Brian Kowald
Cc: 'Dev Mainling List'
Subject: Re: [Helix-producer-dev] Error starting encode
I doubt very much that the exception when executing StartJob
had
anything to do with the XML Schema file. The reason I say
this is that
Producer, much to my dismay, does not validate job files
using any XML
Schema validation. Instead the application performs
validation and the
app does not even try to read the XML Schema.
You might get validation errors if you were loading a job
file into a
DOM with .Net or using the MSXML Parser. In that case, from
what I've
seen below, you have the right idea of how
xsi:schemaLocation works
except I don't think you can refer to a local file with a
relative path
reliably (I don't really know where ActiveX controls end up
as far as
local working directories go). Maybe its relative to the
control (that
would be nice)?
Was your error truely random or does it repro?
Thx, Steve
p.s. There is document with some useful info about XML and
how the
schema validation works in producer job files included in
the command
line app distributed on hc.org (or maybe its published to
the docs
directory in either the sdk or the apps -> command line
project..
On 7/25/2006 6:24 AM, Brian Kowald wrote:
> I am using the Helix producer Active X control to do
real encoding.
> Its has worked fine for months, but I received the
following error one
> time in an exception when calling StartJob() on the
encoder control.
>
>
file:///C:/Synergy/Encoder/job.2.0.xsd#/schema[1]/element[po
sition() =
> 1 and name = 'job']/key[position() = 1 and name =
> 'AudienceID']/selector[1] Reference to undeclared
namespace prefix:
> 'rn'.
>
> Could it be because of some references to files over
the net instead
> of local files?
>
> I modified the job file to refer to
"job.2.0.xsd" locally instead of
> over the internet so that when loading with MSXML it
loades quickly.
>
> Here is the <job> tag of my job file:
> <job xmlns="http://ns.real.com/t
ools/job.2.0"
> xmlns si=&
quot;http://www.
w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://ns.real.com/t
ools/job.2.0 job.2.0.xsd">
>
> Orignally the file contained:
> <job xmlns="http://ns.real.com/t
ools/job.2.0"
> xmlns si=&
quot;http://www.
w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://ns.real.com/t
ools/job.2.0
> http://ns.real.c
om/tools/job.2.0.xsd">
>
> (The change I made was to removed "http://ns.real.com/tools/
a>" before
> job.2.0.xsd)
>
>
> I have not changed job.2.0.xsd at all.
>
> The references to the name space prefix
"rn" in job.2.0.xsd are:
> <xsd:selector
>
xpath="rn:audiences/rn:audience/rn:name"/>
> <xsd:selector
>
xpath="rn:output/rn:mediaProfile/rn:audienceRefs/rn:au
dienceRef"/>
>
> I'm not an expert on xml namespaces, maybe someone
could enligten me?
> Where is the "rn" namespace prefix defined?
>
> Thanks,
> Brian
>
>
>
>
>
>
>
> _______________________________________________
> Helix-producer-dev mailing list Helix-producer-dev helixcommunity.org
> http://lists.helixcommunity.org/mailman/listi
nfo/helix-producer-dev
>
>
_______________________________________________
Helix-producer-dev mailing list
Helix-producer-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listi
nfo/helix-producer-dev
|