YOUR ACCOUNT

Login or Register to post new topics or replies
WarpZone
Posts: 35
Filters: 18
Can anyone help me? I'm trying to use the command-line renderer, and I keep getting this error:

Quote
Schema item 'Preset' not found in Schema 'Filter'. Location: file 'C:\Filter Forge 10\BatchJobs\BatchTest.xml'
line 8, column 8


My XML file looks like this:

Code

<?xml version="1.0" encoding="utf-8" ?>
<Tasks>
    <Task>
        <Image value="" width="512" height="512" />
        <Selection value="" />
        <Result path="C:\Textures\TestTexture.png" />
        <Filter value="C:\Users\user\AppData\Roaming\Filter Forge 10\My Filters\TestFilter.ffxml">
        [B]<Preset value="0" />[/B]
    </Task>
</Tasks>


The line in bold is apparently the problem, if I'm reading the error message correctly. As near as I can tell from the example XMLs I've seen online, this syntax should be correct. (I've tried it with and without the space before the slash, as this seems to vary from example to example.)

I'm using filter Forge 10.007, Professional Edition.
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 3491
The problem is in the 7th line that starts with "Filter". This tag is not properly closed (is missing the trailing slash symbol), so the XML parser throws an error.

You can use third-party tools to check your XML syntax, like this one:
https://www.xmlvalidation.com/index.php
  Details E-Mail
WarpZone
Posts: 35
Filters: 18
Ah! Thank you, GMM. That explains why I wasn't getting any FF-specific google search results for this error. It's a more general XML error. Makes sense. Do I just put </Filter> after the Preset line?

What's interesting is, I can't find a single example of Filter Forge command-line XML online that closes that darn Filter tag or indents for it in any way. For instance, the page at https://www.filterforge.com/more/help/...derer.html appears to contain this example code:

Code

<?xml version="1.0" encoding="utf-8" ?>
<Tasks>
    <Task>
        <Image value="" width="300" height="400" />
        <Selection value="" />
        <Result path="D:\Images\Wood.bmp" />
        <Filter value="C:\Documents and Settings\UserName\
Application Data\Filter Forge 8\System\Library\Library_284-1.ffxml" />
        <Preset value="0" />
    </Task>
    <Task>
        <Image value="" width="300" height="400" />
        <Selection value="" />
        <Result path="D:\Images\WetStone.jpg" format="JPG" />
        <Filter value="C:\Documents and Settings\UserName\
Application Data\Filter Forge 8\System\Library\Library_242-4.ffxml" />
        <Preset value="0" />
    </Task>
    <Task>
        <Image value="D:\1.jpg" />
        <Selection value="" />
        <Result path="D:\Images\ComicBook.bmp" format="BMP">
            <Options>
                <BitDepth value="32" />
                <FlipRowOrder value="false" />
            </Options>
        </Result>
        <RenderingOptions>
            <Dither value="false" />
            <AntiAliasBitmapComponentSources value="true" />
        </RenderingOptions>
        <Filter value="C:\Documents and Settings\UserName\
Application Data\Filter Forge 8\System\Library\Library_227-2.ffxml" />
        <Preset value="0" />
    </Task>
    <GlobalSettings>
        <RenderingOptions>
            <UseMultithreading value="true" />
            <Dither value="true" />
            <Progressive value="true" />
            <OptimizeBlurs value="true" />
            <AntiAliasBitmapComponentSources value="false" />
            <Jitter value="0" />
            <TemporaryFilesLocation value="" />
            <RAMUsageLimit value="60" />
            <NormalMapFlipY value="false" />
        </RenderingOptions>
        <BitmapFormatOptions>
            <DefaultFormat value="JPG" />
            <BMP>
                <BitDepth value="32" />
                <FlipRowOrder value="false" />
            </BMP>
            <JPG>
                <Quality value="98" />
                <FullPrecision value="true" />
            </JPG>
            <TIF>
                <BitDepth value="8" />
                <FloatFormat value="false" />
                <IncludeTransparency value="true" />
                <ImageCompression value="LZW" />
            </TIF>
            <TGA>
                <BitDepth value="32" />
                <IncludeTransparency value="true" />
                <FlipRowOrder value="false" />
            </TGA>
            <PNG>
                <BitDepth value="16" />
                <IncludeTransparency value="true" />
                <ImageCompression value="BEST" />
            </PNG>
            <EXR>
                <BitDepth value="32" />
                <IncludeTransparency value="true" />
                <ImageCompression value="PIZ" />
                <FlipRowOrder value="false" />
            </EXR>
            <PFM />
        </BitmapFormatOptions>
    </GlobalSettings>
</Tasks>


I copied and pasted that code verbatim, and I don't see a single /Filter anywhere in there. And the same is generally true for examples I find that other people have posted here in the forum.

I've tried viewing the above URL with Firefox, Microsoft Edge, and Internet Explorer.
  Details E-Mail
WarpZone
Posts: 35
Filters: 18
HA! Never mind. I figured it out. I forgot to add a space backslash after the path in the Filter tag. I guess that's an alternate way of closing tags in XML? (Sorry, haven't used it before. Still learning.)
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

12 unregistered users.