Subversion Repositories eFlore/Applications.cel

Rev

Rev 989 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 989 Rev 990
Line 311... Line 311...
311
	public String[][] getMetadonnesIptc() {
311
	public String[][] getMetadonnesIptc() {
Line 312... Line 312...
312
		
312
		
Line 313... Line 313...
313
		String[][] metaIptc = {{},{}};
313
		String[][] metaIptc = {{},{}};
314
		
-
 
315
		String xml = renvoyerValeurCorrecte("meta_iptc");
314
		
316
		
315
		String xml = renvoyerValeurCorrecte("meta_iptc");
317
		String invalidXmlPattern = "[^"
316
		String invalidXmlPattern = "[^"
318
            + "\\u0009\\u000A\\u000D"
317
            + "\\u0009\\u000A\\u000D"
319
            + "\\u0020-\\uD7FF"
318
            + "\\u0020-\\uD7FF"
320
            + "\\uE000-\\uFFFD"
319
            + "\\uE000-\\uFFFD"
321
            + "\\u10000-\\u10FFFF"
320
            + "\\u10000-\\u10FFFF"
-
 
321
            + "]+";
-
 
322
		xml = xml.replaceAll(invalidXmlPattern, " ");
322
            + "]+";
323
		
323
		xml = xml.replaceAll(invalidXmlPattern, " ");
324
		//FIXME: pq ça marche pour exif et pas pour iptc ?
324
		try {
325
		try {
325
			Document d = XMLParser.parse(xml);
326
			Document d = XMLParser.parse(xml);