Filter xml

Hello dear people
 , I have a question, I want to filter an xml data which is loaded in a datagrid, but I want to filter this data for search the names 
 Is it posible filter in a text input?, I have search it in many ways, but there is not found much about it. this is my code. Thanks in advance for any help. 
Regards
Joselyn
import fl.controls.DataGrid;
import fl.controls.dataGridClasses.DataGridColumn;
import fl.controls.TextInput;
import fl.data.DataProvider;
import flash.net.URLRequest;
import flash.net.URLLoader;
var dp:DataProvider = new DataProvider();
//Create and populate a new DataProvider object.
var itemTextInput:TextInput = new TextInput();
itemTextInput.addEventListener(Event.CHANGE, changeHandler);
var colTF:TextFormat = new TextFormat();
colTF.bold = false;
colTF.indent = 5;
colTF.size = 11;
colTF.color = 0x000000;
colTF.font = "Verdana";
var col2TF:TextFormat = new TextFormat();
col2TF.bold = false;
col2TF.indent = 5;
col2TF.size = 11;
col2TF.color = 0x000000;
col2TF.font = "Verdana";
var dg:DataGrid = new DataGrid();
dg.setSize(800, 200);
dg.move (0, 100);
var nameCol:DataGridColumn = new DataGridColumn("names");
nameCol.headerText = "Name ";
var descCol:DataGridColumn = new DataGridColumn("address");
domCol.headerText = "Address";
dg.addColumn(nameCol);
dg.addColumn(domCol);
dg.setRendererStyle("textFormat", colTF);
dg.setRendererStyle("textFormat", col2TF);
dg.rowHeight = 22;
dg.headerHeight = 30;
addChild(dg);
var xml:XML;
var url:String = "xmls/othersnames.xml";
var urlXML:URLRequest = new URLRequest(url);
var loader:URLLoader = new URLLoader();
loader.load(urlXML);
function Cargar(event):void
var xml:XML = new XML (loader.data);
var dp:DataProvider = new DataProvider(xml);
dg.dataProvider = dp;
dp.sortOn("name", Array.CASEINSENSITIVE);
dg.rowCount = dp.length;
loader.addEventListener(Event.COMPLETE, Cargar);
// textInput  changeHandler function
function changeHandler(event:Event):void {
var xml:XML = new XML (loader.data);
var dp:DataProvider = new DataProvider(xml);
dg.dataProvider = dp;
var arr:Array = dp.toArray();
var filteredArr:Array = arr.filter(filterDataProvider);
dg.dataProvider = new DataProvider(filteredArr);
function filtering(obj:Object, idx:int, arr:Array):Boolean
var txt1:String = itemTextInput.text;
var txt2:String = obj.name.substr(0, txt1.length);
if (txt1.toLowerCase() == txt2.toLowerCase()) {
  return true;
return false;

Good Day Kglad:
Excuse, I do what you said, I copy and paste but it gave an error:
1084: Syntax error: expecting rightbracket before ampersand. Line 93
THIS IS THE LINE:
var dp:DataProvider = new DataProvider([xml@name,xml@address]);   
// textInput  changeHandler function
function changeHandler(event:Event):void {
var xml:XMLList = XMLList(loader.data.name.(@name.indexOf(itemTextInput.text)>-1));
var dp:DataProvider = new DataProvider([xml@name,xml@address]); 
// you may want to switch rows and columns which would look like:
var a:Array = [];
for(var i:int=0;i<xmlList.length();i++){
  a[i] = [xmlList[i].@name,xmlList[i].@address]
var dp:DataProvider=new DataProvider(a);
dg.dataProvider = dp;
Thank you in advance Kglad
Regards
Joselyn

Similar Messages

  • Content-package-maven-plugin use filter.xml

    Is there a way to get the Maven plugin (content-package-maven-plugin) to use the filter.xml used by VLT for the filtering for the content package. At the moment I need to specifiy the filtering again in the POM.
    <plugin>
    <groupId>com.day.jcr.vault</groupId>
    <artifactId>content-package-maven-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
    <group>geometrixx</group>
    <filters>
    <filter><root>/apps/geometrixx</root></filter>               
    <filter><root>/etc/designs/geometrixx</root></filter> 
    <filter><root>/content/geometrixx</root></filter> 
    </filters>
    <embeddeds>
    <embedded>
    <groupId>${project.groupId}</groupId>
    <artifactId>geometrixx-bundle</artifactId>
    <target>/apps/geometrixx/install</target>
    </embedded>
    </embeddeds>
    <targetURL>http://${crx.host}:${crx.port}/crx/packmgr/service.jsp</targetURL>
    </configuration>
    </plugin>
    Filter.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <workspaceFilter version="1.0">
    <filter root="/apps/geometrixx">
    <include pattern="/apps/geometrixx(/.*)?" />
    </filter>   
    <filter root="/etc/designs/geometrixx"/>
    <filter root="/content/geometrixx"/>
    <filter root="/apps/geometrixx/install">
    <exclude pattern="/apps/geometrixx/install/.*"/>
    </filter>
    </workspaceFilter>

    Dan-
    Rather than having a filters element within the configuration, put
    <filterSource>src/main/content/META-INF/vault/filter.xml</filterSource>
    (correcting the path as necessary).
    Regards,
    Justin

  • Filter xml data Class and use pushView to populate List (Flex Mobile project)

    I am such noob so I apologize for my ignorance. Trying to learn and work at the same time but i'm stumped been searching and my understanding is not up to snuff just yet.
    I looked at the Mobile Shopping Cart that Adobe has little over my head to grasp and impliment but my project is similar without the cart option basically.
    I'm currently using a single view with 3 states
    <s:states>
    <s:State name="default"/>
    <s:State name="productView"/>
    <s:State name="detailsView"/>
    </s:states>
    Default state has a list that uses a xml file with categoryID number's that correspond with the main products xml file.
    Which when the item is selected it filters and updates the List on the productView and so on to the detailsView.
    Like this:
    Category -> Products-> Details
    I'm using a filterCollection from an .as Class file to complete this here is a small snipet.
    private function productService_resultHandler(event:ResultEvent):void
    var productsArray:Array = new Array();
    var resultData:XMLList = event.result..product;
    for each (var p:XML in resultData) {
    var product:Product = Product.buildProductFromAttributes( p );
         productsArray.push( product );
    products = new ArrayCollection( productsArray );
         products.filterFunction = filterForCategory;
         products.refresh();
    private function filterForCategory(item:Product):Boolean{
    return item.catID == selectedCategory;
    public function filterCollection(id:Number):void{
    selectedCategory = id;
         products.refresh();
    Project works great but incredibly slow on Mobile device iOS. In-between the states I have transition animations and it bogs right down.
    So I was trying to experiment by using pushView and basically do the same but utilize Flex's viewNavigator to see if it speeds things up but I can't get the filter function to push the filtered data to the newView component.
    Or I was thinking of trying to order the events such as seletedItem->transition->filtered Data it seems like it is all happing at once and the app just sits for 3 seconds before the state is updated.
    Any help appreciated or more info needed let me know. THX

    So I will solve this later.
    I was able to stick to the original project layout with states within views instead of view states. Ditched the transition Move effects averaging 1 to 2 seconds on all state changes.
    It is a really basic product view app that all files are local. I'm not super impressed at the first go but it works and into the First Project archieve's and will revisit it on version 2. Which will probably start soon. It's better than hello world!

  • How to filter xml using dtd and create a new xml document

    Good morning my name is Antonio and I'm an italian programmer.
    I need an help about the follow question.
    I want to filter the contents of a XML document using a DTD to allow
    only the valid elements and attributes as specified in the DTD to be
    passed through to the output, any data that does not conform to the DTD
    should be filtered out.
    To resolve this problem there's XML Translator Generator (XTransGen): http://www.alphaworks.ibm.com/tech/xmltranslatorgenerator
    but at moment it's not avaiable.
    Can you help me?
    Many thanks.
    ciao
    Antonio

    ...

  • Filter XML Data for ListBox

     This is the continuation of "Filter ListBox w/ XML Data using a TextBox"
    Andy, I read your paper last night. You are so high that I can only understand some of it right now, but you do bring up a performance issue, which needs to be considered for this thread.
    Is myListBox.Items a view or the items that have already loaded into the myListBox? I am confused. If myListBox.Items are the items that are currently in the myListBox, then there will be an performance issue if there are a huge amount of items in the myListBox.
    Am I right?
    Then, the process supposed to be:
    1, add XML source to Blend
    2, filter the source
    3, put in the listbox
    Then the code will be much complicated than the 1st one. right?
    private void filterBtn_Click(object sender, RoutedEventArgs e)
          myListBox.Items.Filter = target => ((XmlElement)target)["ID"].InnerText.Contains(myTextBox.Text);

    There's a pattern that almost every wpf dveloper uses and it's called mvvm.
    Google it, there'll be a shed load of articles.
    It's a passive view pattern in that the view has minimal logic in it.
    The view is your window ( or usercontrol).
    You can add a listboxitem to the listbox.items collection but i would only do  that if it's a very simple static collection.
    You can bind a collection to itemssource and the listbox will create a listboxitem for each things it gets from that collection.
    It creates them using a datatemplate.
    When you do that binding apparently directly to a collection a collectionvie is automagically created between control and collection.
    You can explicitly create one of those collectionview things yourself and this is agreat way to filter and sort.
    You can also use one of those collectionviews to navigate the collection setting the current item in the viewmodel.
    That can be synced in the view so you select an item from the viewmodel.
    I think I probably drifted off topic there somewhat.
    Mvvm is probably different from stuff you've done before.
    It's easier to do a bunch of things using mvvm plus it's what any prospective employer will want.
    Along with tdd/bdd it's industry standard.
    Big tip: learn it.
    You want to avoid showing a user a huge load of data. Not so much for performance reasons but because users can only cope with so much data at a time.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Filter XML Data for Text Fields.

    Hi,
    I'm trying to display a single record out of an XML database
    into dynamic fields in my MovieClip. I need to be able return a
    single record based on the current time. Attached is a sample of my
    XML data.
    I was wondering if this could be acheived with a DataSet
    filterFunction? If it is possible, what code would I need to
    include?
    Finally, do I need to pass my full DataSet to an array or do
    I need to filter first & then pass to an array?
    Thankyou.
    Elton Bernardson.

    There's a pattern that almost every wpf dveloper uses and it's called mvvm.
    Google it, there'll be a shed load of articles.
    It's a passive view pattern in that the view has minimal logic in it.
    The view is your window ( or usercontrol).
    You can add a listboxitem to the listbox.items collection but i would only do  that if it's a very simple static collection.
    You can bind a collection to itemssource and the listbox will create a listboxitem for each things it gets from that collection.
    It creates them using a datatemplate.
    When you do that binding apparently directly to a collection a collectionvie is automagically created between control and collection.
    You can explicitly create one of those collectionview things yourself and this is agreat way to filter and sort.
    You can also use one of those collectionviews to navigate the collection setting the current item in the viewmodel.
    That can be synced in the view so you select an item from the viewmodel.
    I think I probably drifted off topic there somewhat.
    Mvvm is probably different from stuff you've done before.
    It's easier to do a bunch of things using mvvm plus it's what any prospective employer will want.
    Along with tdd/bdd it's industry standard.
    Big tip: learn it.
    You want to avoid showing a user a huge load of data. Not so much for performance reasons but because users can only cope with so much data at a time.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Filter xml file with as

    Looking for help with actionscript.....
    1/ Have ComboBox on stage with prices say $5 to $10 - $10 to
    $20 etc
    2/ Have xml file with assorted pricing
    3/ Have loader to place pic
    3/ Looking to sort prices selected in ComboBox to go into
    DataGrid
    not using asp php or cf
    Kind Regards

    gxml toolkit appears to provide a good path for accomplishing this, no additional help needed.

  • How to filter XML Datasource bound to Dropdown list?

    Dear All,
    I quiet new to LiveCycle designer ES from past couple of weeks I am working on this.
    Right Now I have issue with filering XML Datasource bound with dropdown list.
    I have XML file which has the data to the States and City. I have bound one of my dropdown list to State. My requirement is once I select the 'State' the corresponding City Names has to be listed in the second dropdown list.
    I searched in the net and got couple of samples on that. But I failed to make my form work as requirement. Even though I have generated the XML file as given structure in the examples.
    Please check the attached xml file which I have created.
    I have struckup right now. So, help me this.
    Very much thanks in advance.
    Regards,
    Sree Harshavardhana.

    Dear BR,
    Thanks for the quick reply and most useful example. I'll try to apply the same in to my form and look in to it.
    But, I would like to know is what was the corrections you have made in the javascript. I am not wrong the code which you have written in the example pdf the same I had written, but it did not work for me! Please check the code below which I had written.
    StatesAndCities.#subform[0].StateName::change - (JavaScript, client)
    var stateDataNode = xfa.resolveNode("StatesAndCities.States.(StateID.value == " + this.boundItem(xfa.event.change) + ")");
    CityName.clearItems();
    for (var i=0; i<stateDataNode.City.all.length; i++)
        xfa.host.messageBox(stateDataNode.Cities.all.item(i).Code.value);
        CityName.addItem(staffDataNode.City.all.item(i).Code.value);
    I'll look forward by highlighting my mistakes, so that I can go by my own.
    Regards,
    Sree Harshavardhana.

  • Filter xml data

    is it possible?
    I have an xml data file which has first and last name in the
    table and I want to be able to search from one input field with out
    having to create another field with first and last name combined
    Thanks for any help

    Here is what my xml file looks like
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <offices xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <office id="Y60802" name="Beaumont">
    <firstnamephoto>images/agent/nophoto.jpg</firstnamephoto>
    <firstname>April</firstname>
    <lastname>Schmidt</lastname>
    <title>Realtor</title>
    <officephone>(951)845-5520</officephone>
    <cellphone>(951)283-1359</cellphone>
    <faxnumb>(951)845-4916</faxnumb>
    <email>[email protected]</email>
    <bio>&lt;p&gt;The Pass area is an AWESOME
    place to live! Beautiful snow capped mountains, fields of green and
    all around just a nice place to be. A quickly growing area that
    will soon boast some of the best places to shop! Affordability is
    also a great plus to our area at the moment. Many families are
    coming to the area in an attempt to seek out what makes life
    “better”. With many new schools to serve the areas
    children and parks a plenty. Beaumont seems to be quickly becoming
    the “it” place to
    live.&lt;/p&gt;&lt;p&gt;I have a passion for the
    area that exceeds many peoples emotions, which enables me to be a
    tremendous assist when choosing someone to represent your home. And
    for those of you considering making one of the BIGGEST decisions of
    your lifetime…Buying a home - You will want someone who is
    caring, dedicated and knowledgeable to assist you on that
    journey.&lt;/p&gt;&lt;p&gt;I have lived in the
    Beaumont area for over two decades and have grownup here and am now
    raising my own family here. I have watched this area go from a
    sleepy little town to something that is now considered the
    “IT” place to live. Having successfully built my career
    in Real Estate here in the Pass selling over 300 new homes here in
    the community I am now broadening my horizons by assisting many
    more families in there efforts to achieve the American Dream. I
    look forward to accompanying you on your
    journey!&lt;/p&gt;</bio>
    <listingsurl>searchpoint.net</listingsurl>
    </office>
    <office id="Y60802" name="Beaumont">
    <firstnamephoto>images/agent/nophoto.jpg</firstnamephoto>
    <firstname>Chang</firstname>
    <lastname>Moua</lastname>
    <title>Realtor</title>
    <officephone>(951)845-5520</officephone>
    <cellphone>(951)313-7804</cellphone>
    <faxnumb>(951)845-4916</faxnumb>
    <email>[email protected]</email>
    <bio>&lt;p&gt;In the community: Over 10 years
    in the community.&lt;/p&gt;&lt;p&gt;Sales &amp;
    markerting, Leadership Training
    graduate&lt;/p&gt;&lt;p&gt;Affiliation: National
    Association of Realtors, Yucaipa valley Board of
    realtors&lt;/p&gt;&lt;p&gt;My extensive background
    in the area of customer services and sales, beside attending many
    training classes and seminars, help me keep up with the constant
    and fast pace changes in the market place. Train in technology in
    our industry will help me serve my client to their best
    interst.&lt;/p&gt;&lt;p&gt;You should choose me,
    whether you are selling or buying, because your interest is always
    my priority and responsibility.&lt;/p&gt;</bio>
    <listingsurl>searchpoint.net</listingsurl>
    </office>
    <office id="Y60802" name="Beaumont">
    <firstnamephoto>images/agent/nophoto.jpg</firstnamephoto>
    <firstname>Dawn</firstname>
    <lastname>Henry</lastname>
    <title>Realtor</title>
    <officephone>(951)845-5520</officephone>
    <cellphone>(951)961-8210</cellphone>
    <faxnumb>(951)845-4916</faxnumb>
    <email>[email protected]</email>
    <bio>&lt;ul
    class="bio-info"&gt;&lt;li&gt;Member of the community
    since 1969&lt;/li&gt;&lt;li&gt;Associated with
    Coldwell Banker Kivett-Teeters since
    1998&lt;/li&gt;&lt;li&gt;Certificates: Certified
    Home Marketing Specialist. Certified Negotiator
    Specialist.&lt;/li&gt;&lt;li&gt;Affliations:
    National Association of
    Realtors.&lt;/li&gt;&lt;li&gt;California
    Association of
    Realtors.&lt;/li&gt;&lt;li&gt;Yucaipa Board of
    Realtors.&lt;/li&gt;&lt;li&gt;Awards: Sterling
    Society. (1999,
    2000)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;As a
    manager and real estate agent our broker exposes us to the latest
    in technology. I attend different meetings and classes to keep up
    with the constant changes in our business. My goal is to help
    motivate and train the new agents to succeed in real estate. I have
    many years experience in sales and the customer service industry. I
    strive to make all real estate transactions smooth and as painless
    as possible. We can make your dreams come
    true.&lt;/p&gt;</bio>
    <listingsurl>searchpoint.net</listingsurl>
    </office>

  • XML messages Filter in RBW

    Hello
    In XI 30, look like very small question about RWB container variables filter...
    Simple how to Filter XML error messages in RWB (Alert configure), I couldn't find that answer anywhere... is anyone has idea
    We are receiving XML messages in E mail and (To Interface: continair variable) shows value "Acknowledgement" thease messages we don't need to display, so how to Filter it in RWB or some other palce....
    Please Advised, at lest little advise
    Thanks a lot

    Hi,
    Sure, I can exaplin this clearly!
    Question #1
    In (Exchange Infrastructure 3.0 SP20), setup XML messages (Error) and all error messages goes E mail + blackbarry, We receiving of 90% messages for "Acknowledgment" and display result (To Interface: Acknowledgment) so we would like to Filter it thease messages
    Question #2
    I am another question related same issue
    In SXMB_MONI shows list of XML error messages: and its also display under SOAP Header (Error)
    <SAP:Stack>No receiver could be determined</SAP:Stack>
    I would like to display above line in E mail, but I couldn't found any continair variable or may be it has some other procedure
    I am sending Screenshot to see clear view...
    http://www.flickr.com/photos/25222280@N03/2701501246/sizes/o/
    Thanks for your time... and really appriciated it for fast response
    J

  • XML data into Combo & List

    Hi
    I am too new to this and still tring to learn. Well here is what I am into. I am trying to make a simple product catalog, using native components
         a combobox to display DISTINCT health issues
         a listbox to display the products associated to the selected health issue item in ComboBox
         a textarea to display complete information about the selected product in listbox
    Data comes from single external xml file.
    I was able to start off with Combo, but I don't know how to display DISTINCT ITEMS IN IT? Now it display all items including duplicates. Then I added eventlistener to Combo, which on change, the data for selected item is displyed in Textarea, but i don't know how to hook this to List component.
    All files available here:
    https://docs.google.com/folder/d/0ByHOlDbL5njbX1FFd1UtTFNzMTg/edit
    Sure some of you can do it so easy. Appreciate your time and help.
    Thank you
    Kristtee

    Filter the XML before using it to create your dataProvider http://joshblog.net/2007/05/17/filter-xml-data-with-e4x-in-flash-part-2/

  • Adding mandatory filter with own LoV to BW OLAP Universe

    Dear all,
    I want to add a own filter with custom LoV to a characteristics-filter in an OLAP Universe. This filter does not exist in the BEx Query, so I have to do it manually.
    So when the prompt shows up in WebI, the User should be able to select the Values from the custom LoV, for example:
    - Tokio
    - London
    - Paris
    The filter has to be mandatory and Tokio should be preselected. I was testing some things with the filter-XML, but always got errors. Can somebody tell me how this works?
    Thank you for help in advance!
    B. Wegner

    Hi,
    There are a few steps involved, I would suggest approaching them one at a time.
    First, try to set up a filter (condition in the universe) to only show data for Tokyo (no prompt). Ensure you can get this to work.
    Next, try and turn this condition into a prompt, but just define the LoV in the prompt syntax, not a separate object. Check that this works.
    Next, try and split out that LoV into it's own object that populates from the characteristic in the BEx query. This will be the tricky part (maybe), if possible, get a filter created in the BEx query (make sure it's set as 'ready for user input') so that you see how the LoV gets created.
    As a last resort, have a look in the manual: http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_sap_olap_univ_en.pdf
    Hope that helps.

  • XML files quarantined by anti-virus

    My user client's exchange has quarantined the xml file "Exchange Anti-Virus software found Ackermans Form_data.xml matching FILE FILTER= *.xml file filter.
    The file is currently Removed."
    Is there any way around this or will I have to revert to FDF files?

    Just try not using the file extension .xml - that usually is enough to step byu the virus checker.
    Or check the settings for your virus SW to ignore XML....

  • Creating Powershell script to run against Multiple XML Files: Correcting Nordic characters. Renaming only the files that were corrected.

    Greetings,
    I am new to powershell and scripting and would like to create a powershell script to do the following to XML files.
    I would like to change the data received in XML files that contains special Nordic characters: such as 
    ä, Ä, é, ö, Ö, ü, Ü, and ß respectfully.
    The file names that gets drop to me come in with the following naming convention: C54ABC_111120140500_1, C54ABC_111120140500_2, C54ABC_111120140500_3, C54ABC_111120140500_4 all the way to C54ABC_111120140500_12.
    By automating the script, I would like the script to look into a directory containing these files and access the data within it and change the the data that has the special characters to the English Dictionary character equivalent.
    e.g. ä for a, Ä for A, é for e, ö for o, Ö for O, ü for u, Ü for U, and ß for ss.
    Once that step is complete. I would like to rename the file from C54ABC_111120140500_1.xml to C54ABC_111120140500_1_rctf.xml (adding an additional 5 characters to the end of a file that was corrected) if the file did not need any correction then renaming is
    not needed.
    the working directory (Source and destination) will remain in the same location. e.g. C:\Temp\
    Currently I was able to come up with the following, however I am stuck when it comes to the renaming part since, it requires "IF and Else" statments .... I think.
    $Source = "C:\Temp"
    $Destination = "C:\Temp"
    $regex33 = "\*.xml"
    (Get-Content $regex33) |
    ForEach-Object {$_ -replace "ä", "a" -replace "Ä", "A" -replace "é", "e" -replace "ö", "o" -replace "Ö", "O" -replace "ü", "u" -replace "Ü", "U" -replace "ß", "ss"}
    #Rename-Item -NewName {$_.name -replace -whatif}
    Your Assistance and Expertise is greatly appreciated.
    Thank you in advance KC.

    Hi KC
    You could try something like this.
    Let me know how you get on and if you've any questionds.
    cheers, Tim
    $Source = 'C:\Temp'
    Set-Location $source
    $xmlFiles = Get-ChildItem -Path $source -Filter *.xml
    ForEach ($xmlFile in $xmlFiles)
      $content = Get-Content -Path $xmlFile.FullName
      $renameFile = $false
      Switch -Wildcard ($content) {
        '*ä*'
          $renameFile = $true
          $content = $content -creplace 'ä', 'a'
        '*Ä*'
          $renameFile = $true
          $content = $content -creplace 'Ä', 'A'
        '*é*'
          $renameFile = $true
          $content = $content -creplace 'é', 'e'
        '*ö*'
          $renameFile = $true
          $content = $content -creplace 'ö', 'o'
        '*Ö*'
          $renameFile = $true
          $content = $content -creplace 'Ö', 'O'
        '*ü*'
          $renameFile = $true
          $content = $content -creplace 'ü', 'u'
        '*Ü*'
          $renameFile = $true
          $content = $content -creplace 'Ü', 'U'
        '*ß*'
          $renameFile = $true
          $content = $content -creplace 'ß', 'ss'
      If ($renameFile)
        $newFileName = "$($xmlFile.BaseName)_rctf.xml"
        $content | Out-File -FilePath $xmlFile.FullName -Force
        Rename-Item -Path $xmlFile.PSChildName -NewName $newFileName

  • Messages (Jabber) Refuses to Authenticate AD Users after 10.9.2/Server 3.0.3 update

    Once again, an update appears to have broken Messages/Jabber's ability to authenticate AD users after the 10.9.2/Server 3.0.3 update even though it was working well before. Hoping someone here has some ideas for how to help!
    I can log in just fine as a local user (e.g. [email protected]), but no luck with AD users (e.g. [email protected]). As always, it fails with no intelligible error message whatsoever:
    Mar  1 09:46:00 comet.ADdomain.private jabberd/c2s[604]: [9] [::ffff:76.24.227.229, port=58658] connect
    Mar  1 09:46:01 comet.ADdomain.private jabberd/c2s[604]: [9] [::ffff:76.24.227.229, port=58658] disconnect jid=unbound, packets: 0
    Mar  1 09:48:00 comet.ADdomain.private jabberd/c2s[604]: [9] [::ffff:76.24.227.229, port=58667] connect
    Mar  1 09:48:01 comet.ADdomain.private jabberd/c2s[604]: [9] [::ffff:76.24.227.229, port=58667] disconnect jid=unbound, packets: 0
    I reset the jabber server configuration as described here to no avail: https://discussions.apple.com/thread/5354428
    The DNS configuration looks good:
    changeip -checkhostname
    Primary address     = 10.0.17.15
    Current HostName    = comet.ADdomain.private
    DNS HostName        = comet.ADdomain.private
    The names match. There is nothing to change.
    dirserv:success = "success"
    The Jabber status from jabber:
    serveradmin fullstatus jabber
    jabber:state = "RUNNING"
    jabber:roomsState = "RUNNING"
    jabber:logPaths:PROXY_LOG = "/private/var/jabberd/log/proxy65.log"
    jabber:logPaths:MUC_STD_LOG = "/var/log/system.log"
    jabber:logPaths:JABBER_LOG = "/var/log/system.log"
    jabber:proxyState = "RUNNING"
    jabber:currentConnections = "0"
    jabber:currentConnectionsPort1 = "0"
    jabber:currentConnectionsPort2 = "0"
    jabber:pluginVersion = "10.8.211"
    jabber:servicePortsAreRestricted = "NO"
    jabber:servicePortsRestrictionInfo = _empty_array
    jabber:hostsCommaDelimitedString = "comet.ADdomain.private"
    jabber:hosts:_array_index:0 = "comet.ADdomain.private"
    jabber:setStateVersion = 1
    jabber:startedTime = "2014-03-01 17:39:06 +0000"
    jabber:readWriteSettingsVersion = 1
    Full jabber server startup log:
    Mar  1 09:52:19 comet.ADdomain.private servermgrd[180]: servermgr_jabber[N]: waiting for jabberd to finish startup...
    Mar  1 09:52:19 comet.ADdomain.private jabberd/router[1785]: starting up
    Mar  1 09:52:19 comet.ADdomain.private jabberd/router[1785]: loaded user table (1 users)
    Mar  1 09:52:19 comet.ADdomain.private jabberd/router[1785]: couldn't open filter file /etc/jabberd/router-filter.xml: No such file or directory
    Mar  1 09:52:19 comet.ADdomain.private servermgrd[180]: servermgr_jabber[N]: jabberd service startup completed.
    Mar  1 09:52:19 comet.ADdomain.private jabberd/c2s[1786]: starting up
    Mar  1 09:52:19 comet.ADdomain.private jabberd/s2s[1787]: starting up (interval=60, queue=60, keepalive=0, idle=86400)
    Mar  1 09:52:19 comet.ADdomain.private jabberd/sm[1784]: starting up
    Mar  1 09:52:19 comet.ADdomain.private jabberd/c2s[1786]: modules search path: /Applications/Server.app/Contents/ServerRoot/usr/libexec/jabberd/modules
    Mar  1 09:52:19 comet.ADdomain.private jabberd/c2s[1786]: initialized auth module 'apple_od'
    Mar  1 09:52:19 comet.ADdomain.private jabberd/sm[1784]: initialised storage driver 'sqlite'
    Mar  1 09:52:19 comet.ADdomain.private jabberd/sm[1784]: modules search path: /Applications/Server.app/Contents/ServerRoot/usr/libexec/jabberd/modules
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-last' added to chain 'sess-end' (order 0 index 0 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'validate' added to chain 'in-sess' (order 0 index 1 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'privacy' added to chain 'in-sess' (order 1 index 2 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'roster' added to chain 'in-sess' (order 2 index 3 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=5347] listening for incoming connections
    Mar  1 09:52:20 comet.ADdomain.private jabberd/c2s[1786]: [comet.ADdomain.private] configured; realm=comet.ADdomain.private, registration disabled, using PEM:/etc/certificates/mail.ADdomainbio.com.E41BBC081993E348B26181D9CB334A28137A8D8D.concat.pem
    Mar  1 09:52:20 comet.ADdomain.private jabberd/c2s[1786]: attempting connection to router at 127.0.0.1, port=5347
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49353] connect
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49353] authenticated as jabberd
    Mar  1 09:52:20 comet.ADdomain.private jabberd/c2s[1786]: connection to router established
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [c2s] online (bound to 127.0.0.1, port 49353)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/c2s[1786]: [::, port=5222] listening for connections
    Mar  1 09:52:20 comet.ADdomain.private jabberd/c2s[1786]: [::, port=5223] listening for SSL connections
    Mar  1 09:52:20 comet.ADdomain.private jabberd/c2s[1786]: ready for connections
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'vacation' added to chain 'in-sess' (order 3 index 4 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/s2s[1787]: attempting connection to router at 127.0.0.1, port=5347
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49354] connect
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49354] authenticated as jabberd
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-vcard' added to chain 'in-sess' (order 4 index 5 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/s2s[1787]: connection to router established
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [s2s] set as default route
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [s2s] online (bound to 127.0.0.1, port 49354)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/s2s[1787]: ready for connections
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-ping' added to chain 'in-sess' (order 5 index 6 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-private' added to chain 'in-sess' (order 6 index 7 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private Rooms[1792]: Starting up...
    Mar  1 09:52:20 comet.ADdomain.private Rooms[1792]: Loading persistent rooms from disk...
    Mar  1 09:52:20 comet.ADdomain.private Rooms[1792]: Finished loading rooms from disk
    Mar  1 09:52:20 comet.ADdomain.private Rooms[1792]: Connecting to XMPP server at 'comet.ADdomain.private' as 'rooms.comet.ADdomain.private'...
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'disco' added to chain 'in-sess' (order 7 index 8 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'amp' added to chain 'in-sess' (order 8 index 9 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'offline' added to chain 'in-sess' (order 9 index 10 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'announce' added to chain 'in-sess' (order 10 index 11 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'presence' added to chain 'in-sess' (order 11 index 12 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'deliver' added to chain 'in-sess' (order 12 index 13 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'session' added to chain 'in-router' (order 0 index 14 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'validate' added to chain 'in-router' (order 1 index 1 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'presence' added to chain 'in-router' (order 2 index 12 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'privacy' added to chain 'in-router' (order 3 index 2 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'privacy' added to chain 'out-router' (order 0 index 2 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-last' added to chain 'pkt-sm' (order 0 index 0 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-ping' added to chain 'pkt-sm' (order 1 index 6 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-time' added to chain 'pkt-sm' (order 2 index 15 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-version' added to chain 'pkt-sm' (order 3 index 16 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'amp' added to chain 'pkt-sm' (order 4 index 9 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'disco' added to chain 'pkt-sm' (order 5 index 8 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'announce' added to chain 'pkt-sm' (order 6 index 11 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'help' added to chain 'pkt-sm' (order 7 index 17 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'echo' added to chain 'pkt-sm' (order 8 index 18 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'presence' added to chain 'pkt-sm' (order 9 index 12 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'roster' added to chain 'pkt-user' (order 0 index 3 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'presence' added to chain 'pkt-user' (order 1 index 12 seq 3)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-vcard' added to chain 'pkt-user' (order 2 index 5 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'amp' added to chain 'pkt-user' (order 3 index 9 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'deliver' added to chain 'pkt-user' (order 4 index 13 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'vacation' added to chain 'pkt-user' (order 5 index 4 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'offline' added to chain 'pkt-user' (order 6 index 10 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-last' added to chain 'pkt-user' (order 7 index 0 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'session' added to chain 'pkt-router' (order 0 index 14 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'disco' added to chain 'pkt-router' (order 1 index 8 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'active' added to chain 'user-load' (order 0 index 19 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'autobuddy' added to chain 'user-load' (order 1 index 20 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'roster' added to chain 'user-load' (order 2 index 3 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'roster-publish' added to chain 'user-load' (order 3 index 21 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'privacy' added to chain 'user-load' (order 4 index 2 seq 3)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'vacation' added to chain 'user-load' (order 5 index 4 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'active' added to chain 'user-create' (order 0 index 19 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'template-roster' added to chain 'user-create' (order 1 index 22 seq 0)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'active' added to chain 'user-delete' (order 0 index 19 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'announce' added to chain 'user-delete' (order 1 index 11 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'offline' added to chain 'user-delete' (order 2 index 10 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'privacy' added to chain 'user-delete' (order 3 index 2 seq 4)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'roster' added to chain 'user-delete' (order 4 index 3 seq 3)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'vacation' added to chain 'user-delete' (order 5 index 4 seq 3)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-last' added to chain 'user-delete' (order 6 index 0 seq 3)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-private' added to chain 'user-delete' (order 7 index 7 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-vcard' added to chain 'user-delete' (order 8 index 5 seq 2)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'iq-version' added to chain 'disco-extend' (order 0 index 16 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: module 'help' added to chain 'disco-extend' (order 1 index 17 seq 1)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: version: jabberd sm 2.2.17-409
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: [comet.ADdomain.private] configured
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: attempting connection to router at 127.0.0.1, port=5347
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49355] connect
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49355] authenticated as jabberd
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: connection to router established
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [sm] online (bound to 127.0.0.1, port 49355)
    Mar  1 09:52:20 comet.ADdomain.private jabberd/sm[1784]: sm ready for sessions
    Mar  1 09:52:20 comet.ADdomain.private jabberd/router[1785]: [comet.ADdomain.private] online (bound to 127.0.0.1, port 49355)
    Mar  1 09:52:22 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49356] connect
    Mar  1 09:52:22 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49356] authenticated as proxy65.comet.ADdomain.private
    Mar  1 09:52:22 comet.ADdomain.private jabberd/router[1785]: [proxy65.comet.ADdomain.private] online (bound to 127.0.0.1, port 49356)
    Mar  1 09:52:23 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49357] connect
    Mar  1 09:52:24 comet.ADdomain.private jabberd/router[1785]: [127.0.0.1, port=49357] authenticated as rooms.comet.ADdomain.private
    Mar  1 09:52:24 comet.ADdomain.private jabberd/router[1785]: [rooms.comet.ADdomain.private] online (bound to 127.0.0.1, port 49357)
    Mar  1 09:52:24 comet.ADdomain.private Rooms[1792]: Successfully connected to XMPP server, ready for activity
    I am not sure if it's attempting to authenticate to AD or not, and if so, why it might be failing. Any suggestions would be greatly appreciated!

    uscadvit wrote:
    Here is the output without the name of our AD:
    Advanced Options - User Experience
      Create mobile account at login = Disabled
         Require confirmation        = Enabled
      Force home to startup disk     = Enabled
         Mount home as sharepoint    = Enabled
      Use Windows UNC path for home  = Enabled
         Network protocol to be used = smb
      Default user Shell             = /bin/bash
    Advanced Options - Mappings
      Mapping UID to attribute       = not set
      Mapping user GID to attribute  = not set
      Mapping group GID to attribute = not set
      Generate Kerberos authority    = Enabled
    Advanced Options - Administrative
      Preferred Domain controller    = not set
      Allowed admin groups           = not set
      Authentication from any domain = Enabled
      Packet signing                 = allow
      Packet encryption              = allow
      Password change interval       = 14
      Restrict Dynamic DNS updates   = not set
      Namespace mode                 = domain
    That looks correct. Lets collect a few more config items.
    Copy / paste the output of this command when run against c2s.xml:
    sudo grep '<id require-starttls="true" pemfile="' /Library/Server/Messages/Config/jabberd/c2s.xml
    Ours looks like this:
    <id require-starttls="true" pemfile="/etc/certificates/chat.example.com.1234567890.concat.pem" private-key-password="12345678-1234-1234-12345678" cachain="/etc/certificates/chat.example.com.1234567890.chain.pem" realm="example.com">example.com</id>
    Copy / paste the output of this command when run against sm.xml. To give us context, it will display the 6 lines above and below the text:
    sudo grep -C 6 'If not set, the SM id is used. -->' /Library/Server/Messages/Config/jabberd/sm.xml
    Ours looks like this:
    <!-- Local network configuration -->    <local>        <!-- Who we identify ourselves as.         Users will have this as the domain part of their JID.         If you want your server to be accessible from other         Jabber servers, this IDs must be FQDN resolvable by DNSes.         If not set, the SM id is used. -->        <id>example.com</id>        <!--    <id>vhost1.localdomain</id>    <id>vhost2.localdomain</id>    -->    </local>
    Copy / paste the output of this command:
    sudo serveradmin settings jabber
    Ours looks like this:
    jabber:dataLocation = "/Library/Server/Messages"jabber:s2sRestrictDomains = nojabber:jabberdDatabasePath = "/Library/Server/Messages/Data/sqlite/jabberd2.db"jabber:sslCAFile = "/etc/certificates/chat.example.com.1234567890.chain.pem"jabber:jabberdClientPortTLS = 5222jabber:sslKeyFile = "/etc/certificates/chat.example.com.1234567890.concat.pem"jabber:initialized = yesjabber:enableXMPP = nojabber:savedChatsArchiveInterval = 7jabber:authLevel = "STANDARD"jabber:hostsCommaDelimitedString = "example.com"jabber:jabberdClientPortSSL = 5223jabber:requireSecureS2S = nojabber:savedChatsLocation = "/Library/Server/Messages/Data/message_archives"jabber:enableSavedChats = nojabber:enableAutoBuddy = yesjabber:s2sAllowedDomains = _empty_arrayjabber:logLevel = "ALL"jabber:hosts:_array_index:0 = "example.com"jabber:eventLogArchiveInterval = 7jabber:jabberdS2SPort = 0
    Also, while you're troubleshooting, I found Adium's debug window to be invaluble for showing errors during logon (even if you plan to use Messages).
    You can open it in debug mode by holding option + click Adium.app, select "start in debug mode". Then in Adium menu > Debug window.

Maybe you are looking for

  • How to create the custom charts?

    how to create a custom charts? for example the donut shapes, but for the data can be automatically adjust (like a available charts on keynote)

  • How do you get iTunes music from one computer to the other?

    I activated iCloud, home sharing on multiple computers and i still don't know how to share my music and movie files from itunes.

  • How do small companies / non-profits purchase software from the app store?

    Hello, I have asked this question to a few Apple Business reps and I seem to get conflicting answers depending on the person I talking to.  I work in the I.T. department for a large non-proffit.  We are no stranger to purchasing Apple computers, phon

  • Licence   is not included for the material

    Hi, I have maintained account ddetermination for DIEX ETT for sub transaction type 22. When I am doing Additional Excise in J1IH system is giving the warning message as "Licence   is not included for the material" and it is not picking any G/L accoun

  • Conditionally assign a value to a parameter

    I'm using this code to conditionally assign a value to a parameter p_data_type: <?if:H_ACCOUNT_HIER_DESC='EST'?><xsl:param name="p_data_type" select="'number'" xdofo:ctx="begin"/> <?end if?> <?if:H_ACCOUNT_HIER_DESC='PAR'?><xsl:param name="p_data_typ